Process Builder: Dynamic Date for Task related to a Case - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Jose EstradaJose Estrada 

Process Builder: Dynamic Date for Task related to a Case

I created the following Process Builder that creates a Task to notify Finance Dept. that a Claim (Case Record Type) has been submitted.

I have a field called Estimated Resolution Date that changes depending on the Priority of the Case.

Upon creation of this Record Type: Claim, a Task is generated and the Est. Resolution Date becomes Task's Due Date.

How can I set this PB up to where if a user changes the Priority (and consequently, the Estimated Resolution Date), that the new date also changes the Task Due Date?
I do not want to create another Task. I only want to update the Task that was created when the Claim Record Type was created, whenever the Case Priority changes.

User-added image
This answer by Steve Dodd helped alot but the scenario is a bit different: https://success.salesforce.com/answers?id=9063A000000iceoQAA
Best Answer chosen by Jose Estrada
Sunil SarillaSunil Sarilla
Hi Jose,
As part of the your existing process create a second node and the criteria for the node is ISCHANGED(Priority)
as part of the actions update the related records and select Tasks
and under Criteria for Updating Records
select: Updated records meet all conditions
Field          Operator              Type         Value
Subject      equals                  String       New Claim Submitted: Please Review
Status       Does not equal     Picklist      Completed
Set the New Vallues and Update the Task Due Date

All Answers

Sunil SarillaSunil Sarilla
Hi Jose,
a case could have multiple tasks related to it, how do you know the task that is created is the task when the claim record type was created? (can we use subject to identiy the task)
Jose EstradaJose Estrada
Hello Sunil,

We could! The Subject will always be the same for this particular task:
New Claim Submitted: Please Review
Sunil SarillaSunil Sarilla
Hi Jose,
As part of the your existing process create a second node and the criteria for the node is ISCHANGED(Priority)
as part of the actions update the related records and select Tasks
and under Criteria for Updating Records
select: Updated records meet all conditions
Field          Operator              Type         Value
Subject      equals                  String       New Claim Submitted: Please Review
Status       Does not equal     Picklist      Completed
Set the New Vallues and Update the Task Due Date
This was selected as the best answer
Jose EstradaJose Estrada
See... Sometimes the real issue is overthinking. This makes total sense and worked perfectly. Thanks so much, Sunil!