Skip to main content

Hi guys,

I need to create a simple flow that will save the previous value and date when the field "accountBuyingStage6sense__c" changes to a new value. The challenging part is updating the field "previous_accountBuyingStage6sense__c" after 5 minutes from the change in "accountBuyingStage6sense__c."

Without a scheduled path, it works fine. However, when I add a scheduled path, I realize that I can't use "Update every time record is updated and meets the criteria." Instead, I should use "Only when the record update meets the criteria." The issue here is that I still need the field "previous_accountBuyingStage6sense__c" to be updated every time "accountBuyingStage6sense__c" changes.

Does anyone know how to fix this?

 

Scheduled path with IsChange

5 个回答
  1. 2023年10月17日 20:14

    Hi @Anna Petrikova

    There is a lot of issues of updating 5 minutes after. What happens if there is change in accountBuyingStage6sense__c in these 5 minutes. So instead of doing that I suggest you to either enable history for that particular field if you just want the history, or if you want the data in previous_accountBuyingStage6sense__c my suggestion would be to use trigger and Future / Queueable Apex which will only run when the resources will be available so there wont be a wait time of 5 minutes as well. So I think going the code route is a better idea.

0/9000