Skip to main content
Vanessa Zolar ha preguntado en #Flow

I have a couple of different status fields that interact with eacht other, meaning that changing one to a certain value can also change the value of a different status. This is handled by record triggered flow A. Now I have a different record-triggered flow B that tracks staus changes. (It crates a tracking record with details about what changed)

 

The problem that I'm experiencing is the following: (illustrated by an imaginary example)

  • I change the status cat from "sleeping" to "awake"
  • Flow A now changes status mouse from "calm" to "panicked"
  • After this action I notice that flow B only seems to have fired on the cat status change and not on the mouse status change.

Some context about flow B:

  • It fires whenever either status cat or status mouse changes
  • It checks independently of each other whether either status changed and then calls a subflow that creates the tracking.
  • When I perform the same changes (cat from sleeping to awake as well as mouse from calm to panicked) by hand in the UI, the tracking works as expected: two records are created, one for cat, one for mouse.

 

I did this to replace and a process. We never had this problem with the process and I suspect it has something to do with recursion. Any help is appreciated!

#flow
2 respuestas
  1. Andrew Russo (BACA Systems) Forum Ambassador
    10 jun 2022, 19:26

    if you are in a summer 22 sandbox you can play with flow order explorer. or wait until next week when it is in your prod org. likely the problem is what order they are firing in. some people recommend havign only 3 records triggered flows before  per object, then doing all the logic inside like calling a sub flow if needed. 

     

    https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_trigger_explorer_run_order.htm&language=en_US&r=https%3A%2F%2Fwww.google.com%2F&type=5