Can we update parent field in Workflow?

Can we update parent field in Workflow?

You can update a field on a parent record by creating a field update action for a workflow rule created on a child record. When working with a many-to-many relationship object, you can update fields on either parent. For standard objects, workflow rules can only perform field updates on the object related to the rule.

How do you update a parent object field from a Workflow in Salesforce?

All Answers

  1. Create a workflow rule for Opportunity Object (Detail/Child object)
  2. Set the evaluation criteria as required.
  3. set the Rule Criteria as required.
  4. Click next.
  5. Select field update from the ‘Add workflow action’ dropdown menu.
  6. Fill in the Name, Unique Name & Description.

Can a parent record be updated in process builder?

For updating related records, Process Builder can update any field on any related record, where Workflow can only update some fields on a parent record of a Master-Detail relationship. Process Builder can also update multiple related records in a situation when all of a record’s child records need the same update.

How to call Apex code from a process?

Go to Setup > Process builder > click new. Enter the process name, description, select ” The process starts when ” as A record changes. Add the object (Testobject1__c ), select when a record is created or edited.

How to create a process builder on a child object?

Create a process builder on child object and update parent object, here I am using account and contact. Created process builder on contact and updating account status field when contact status is rejected. Please find below screenshots for reference. Please let me know, if any info needed.

How to use process builder in Force.com?

Process builder is one of the most powerful tools of the Force.com platform that will help you to setup many business processes without writing a single line of code. In this post I will walk you through the steps to build a process that will be triggered for any changes in a parent record which will eventually update the child records.