Hi there,
I am trying to create a flow that will update an invoice date when the Payment Terms or Invoice Date is changed.
View of the size of Due Date Flow
Due Date Formula
Initially I started to write a flow to allow conditions to determine what is in the field (7, 30, 60, 90), and add that value to the Invoice Due Date using this expression: addDays(utcNow(), 7)
However I realised that the if the Invoice Date has been updated (in theory it should stay as the created date, but I need to build this to allow an update), the new invoice date might not be for the day it was updated (utcnow).
I'm looking for a way to write an expression that will add the number listed in the Payment Terms field, to the date on the Invoice Date field.
Any thoughts appreciated,
The Invoice Due Date is to be the Payment Terms + the Invoice Date. However , so my flow has been getting built