You need to sign in to do that
Don't have an account?
Sudeep Singh
In MemberPlan if a insurance is marked as primary then it should get updated in the Account lookup custom field with that primary marked lookup
In MemberPlan if a insurance is marked as primary then it should get updated in the Account lookup custom field (Insurance) with that primary marked lookup.
Primary is the custom field in MemberPlan standard object
Insurance is lookup with MemberPlan.
Any MemberPlan which is marked primary that must get displayed in the Insurance field of Account
Thanks
Primary is the custom field in MemberPlan standard object
Insurance is lookup with MemberPlan.
Any MemberPlan which is marked primary that must get displayed in the Insurance field of Account
Thanks
You can use recordtriggered flow on Memberplan object as below. I dont see Primary standard field so created custom field.
Start condition:
OR(AND(ISNEW(), Primary__c), ISCHANGED(Primary__c))
Decision condition:
Update record element to make insurance field.
Update record if primary false to null.
The entire flow will be as below:
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Here's how you can do this with a Workflow:
Go to Setup and then click on Workflow Rules.
Create a new Workflow Rule and select MemberPlan as the object.
Give the Workflow Rule a name, for example, "Update Account Insurance Lookup".
Add a new Criteria to start the Workflow when the "Primary" field equals "True".
Add a new action of type "Field Update" to update the Account object.
In the "Field to Update" section, select the "Insurance" lookup field.
In the "New Value" section, select the MemberPlan as the value.
Save and activate the Workflow.
OR a trigger
Can you confirm if insurance is custom object and primary field is on Insurance object?
Thanks,
Insurance field is MemberPlan Object which is standard and I had created Primary Checkbox field in MemberPlan
Thanks
I dont see Insurance or Primary checkbox on Memberplan object. Are you using Memberplan object of healthcloud?
https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_memberplan.htm
Thanks,
MemberPlan is the standard object
Primary checkbox field is in Memberplan.
And made a lookup field in account named as Insurance.
Ya it is healthcloud
thanks
You can use recordtriggered flow on Memberplan object as below. I dont see Primary standard field so created custom field.
Start condition:
OR(AND(ISNEW(), Primary__c), ISCHANGED(Primary__c))
Decision condition:
Update record element to make insurance field.
Update record if primary false to null.
The entire flow will be as below:
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,