Is it possible to create condition operator for IF flow logic in Flow Designer?

MeghaB
Tera Contributor

I have a requirement, to cater to which, it is important, that I am able to create a condition, in the IF Flow, of Flow Designer Like:

 

If a specific field’s value CHANGES FROM False AND it CHANGES to True, then a particular activity would occur.

But, I see in the conditions operator, for IF condition, we only have: is | is not | is empty | is not empty | contains | does not contain

 

Is it Possible to create conditions operator CHANGES FROM, CHANGES TO- like business rule- which we can use while building IF Flow condition, in Flow Designer?

MeghaB_0-1720799544589.png

 

If not possible, can there be any work around- to achieve this via scripting?

 

P.S- It is important to achieve this use-case via Flow designer, we cant use Business Rule for this- since the requirement involves lots of different combination of criterias, which if we try to achieve via Business Rule, we need to create a couple of Business Rules and Flows (together), which would impact maintainability of code- for future scope of enhancement.

 

If anyone has come across this type of situation, any leads of this, would be very helpful!

 

3 REPLIES 3

VernYerem
Tera Expert

You could store the Field's value in a flow variable, and then compair them throughout your flow. 

Ahmmed Ali
Mega Sage

Hello @MeghaB 

 

As per my understanding, since the flows run with system schedular, previous record state will not be available in flow and hence cannot have changes related condition.

 

One workaround would be to have your logic in sub-flow and create business rule with the condition and then trigger the sub-flow. 

 

For any solution, I think the BR is needed to identify the change of field.

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

MackI
Kilo Sage

HI @MeghaB 

 

Can you paste exact User Story or what you try to achieve thene i replciate it on my PDI and you will get the solutin within next 24 Hours after i seen your post.

 

Mark my reply as Helpful so that I can start building a solution for you in detail steps is going to be provided on my next reply. 

 

If you like this opinion and your problem is resolved after reviewing and applying it. Please kindly mark this your best answer‌🌠‌ OR  mark it  Helpful ‌‌ if you think that you get some insight from this content relevant to your problem and help me to contribute more to this community


MackI | ServiceNow Developer | 2 *Mainline Certification | LinkedIn Top IT Operation Voice 2023 | Sydney,Australia