Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UI Policy Action on a flow input variables

Julian Poyntz
Tera Contributor

So I know there are mandatory, but can you apply a UI policy ?

I want to ensure that when someone adds a subflow or action, they need to populate one of two fields - not both

In the workflow activity I am converting, dead easy.  Set both to mandatory and if one gets populated, mark the other as non mandatory.

Anyway to achieve that in Flow Designer?

1 REPLY 1

kim-lindgren
Kilo Sage

I also wonder about this. In my case I want to show/hide input variables depending on the choice made in a another input variable. It seems to me that the input fields should be actual fields on a table somewhere... but I guess it is not that simple.

 

Invesitgating more closely, I notice that my input choice variable choices show up in the sys_choice table with a table reference to "var__m_sys_hub_flow_input_[sys_id]" in the table field. Later on when I updated both choice values, the table reference changed to a new sys_id. So I have a strong suspicion that this is not something we are supposed to be able to work with.

 

It would still be nice if ServiceNow could create a solution for UI policies on subflow input fields.