0

I have created a record-triggered flow to work with an field update change in an approval process. The flow is fired off a child object called Subsidy Request with a currency field called Requested Amount. The parent object for it is Subsidy Budget and it has a currency field called Budget Amount. When the flow is triggered off the child and meets conditions, I need to update the Budget Amount in the parent object by subtracting the Requested Amount from the Budget Amount (basically a formula). I have not been able to do this, but know little about Flows.

I have tried to Get the Budget Amount and save it to a formula resource that I created doing a Get Records action, but when I try to use that in the Update Records action below and save, I get an error:

Get_Budget_Amount (Get Records) - The sObject variable $Record has object type LISI_Subsidy_Request__c, which doesn't match the object selected for lookup.

Am I doing something that is even possible with flow?

1 Answer 1

1

OK, I got it to work finally. I was over architecting it. I did not need the Get Records step to populate a formula. All I needed to do was use a Update Related Records action and inside that, assign the Budget Amount using a new formula that I created in that action. Now, it saves without an error. I just need to add a decision action to either add or subtract, depending on the Approval Status.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .