You need to sign in to do that
Don't have an account?
Force.platform
how to fetch child record on parent record
I have Parent__C and child__C object with lookup rel.
there is one field on child__c ie. tracking_number__c.
i want this tracking number firld value on parent. how can i do?
there is one field on child__c ie. tracking_number__c.
i want this tracking number firld value on parent. how can i do?
I trust you are doing very well.
To fetch child record in a parent, you can use below SOQL query.
Parent-Child SOQL:
If you want to update parent record using child record you can use process builder or trigger. Please refer to below link to update parent record using child record using process builder.
https://developer.salesforce.com/forums/?id=9060G000000UVjrQAG
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas
can i do this by formula field? i am not doing any trigger or apex code part here?
You can achieve this without Apex by using Process Builder and Flows.
Please refer to the below links which might help you further with the above issue.
http://succeedwithsalesforce.com/using-process-and-flows-to-update-parent-record-based-on-all-related-child-records/
https://success.salesforce.com/answers?id=90630000000ZggwAAC
https://developer.salesforce.com/forums/?id=9060G000000UVjrQAG
I hope it helps you.
Kindly mark this as solved if the information was helpful.
Regards,
Khan Anas