Clicking on the "New Client at a Glance" button establishes a new client at a glance, and links it to the account we had been working on. It also allows us to give a Client at a Glance Name (required field)
We've now created a field on the account object lets us set up a link to our "Client at a Glance" based on the "Client at Glance Name", however I want this field to update automatically as soon as the Client at a Glance is established.
Is there a workflow or trigger I can use to update this field on my Account parent object when my child object is created (with the value of the Client at a Glance Name that was just established)? I'm told this shouldn't be particularly difficult.
Thanks so much!
Lars Phillips
7 respuestas
Yes,
You have 2 options with which this can be achieved.
1) You can make use of Standard native Workflows. If Account and 'Client at a glance' have master detail relationship, You can have Cross Object workflow Rules, which would update the Parent Record once child is updated. I personally would prefer this.
https://help.salesforce.com/HTViewHelpDoc?id=workflow_cross_object_field_updates.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=workflow_cross_object_field_updates.htm&language=en_US)
2) You can make use of the Process Builder to update Parent Record when child records is updated. Process builder is very easy to use and can be done within clicks.
https://help.salesforce.com/HTViewHelpDoc?id=process_overview.htm
For this specific requirement : We only want there to be one "Client at a Glance" per household.
You can make use of a Custom Roll up summary field 'Count Client Glance' at Account Object level, which would keep the count of 'Client at a Glance ' records. Have a validation Rule on Account which says 'Count Client Glance' > 1, throw an error.