You need to sign in to do that
Don't have an account?
Mayank07
update picklist value of one object based on other object's picklist value
I am trying to update a Picklist value "status ='Closed'" of a custom object Service_Request__c based on Picklist value "Status = 'Completed' on Service_Line__c record, basically this should happen after I update Status = 'Completed' on Service_Line__c. Service_Line__c Custom Object has a Master-Detail with Service_Request__c. Thanks in Advance.
You can write a parent child SOQL query to meet your requirement. Below is the sample code, please make changes as required
If you find the above infomation helpful, please mark this answer as solved by selecting it as best. It may help others in the community. Thank You!
Anudeep
Let me take you through the whole process, in this case first a process builder is created so that when a record is created on Service_Request__c accordingly three records are created on Service_Line__c object(Service Line A, Service Line B, Service Line C) now i want when the status of all three records is set to ''completed'' then only the Status on Service_Request__c will update to 'Closed'.
Hope now things are much clear.
kindly look into the issue
It looks like our team of experts can help you resolve this ticket.
We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!
https://jbshelpdesk.secure.force.com
Thanks,
Jarvis SFDC team
The below code will ensure the Service__Request__c status is updated only when all the service_line__c records have the same status
Anudeep