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.

Ability to order Variables under Data Definition (sys_flow_data_definition) for PAD

CoryJ
Tera Guru

We're having a hard time trying to figure out how to Order Flow Data Variables created in our data definition that display in a playbook card. 

 

There is a field called "Order" but it doesn't seem to have an effect.

 

sys_flow_data_definition

sys_flow_data_var

 

1 ACCEPTED SOLUTION

CoryJ
Tera Guru

In case anyone stumbles across this thread...

 

SOLUTION PROPOSED:
The order field has not been used for several releases and now to change the order please follow the steps below.

- Navigate to the Flow Data Definition record
- Click on the Preview button next to one of the Flow Data Variables
- Copy the name of the virtual table (i.e. var__m_sys_flow_data_var_65ad368583c9ca1066f49765eeaad3cc.do)
- Paste that virtual table name into the Filter Navigator followed by ".do" and hit enter
- This will show a new record form for the set of variables
- From here you can edit the Form View as you would normally do by right clicking the header and going into form builder or form layout
-Here you can change the order of the fields using the up/down arrows

View solution in original post

4 REPLIES 4

CoryJ
Tera Guru

For example ... here we tried to change the OOTB Create Child Task variables by switching the Order of description and priority. But the backend form/workspace view don't reflect our update. We also tried to create a new instance of the activity on our designer after the change.

 

CoryJ_0-1716315382139.png

 

CoryJ
Tera Guru

In case anyone stumbles across this thread...

 

SOLUTION PROPOSED:
The order field has not been used for several releases and now to change the order please follow the steps below.

- Navigate to the Flow Data Definition record
- Click on the Preview button next to one of the Flow Data Variables
- Copy the name of the virtual table (i.e. var__m_sys_flow_data_var_65ad368583c9ca1066f49765eeaad3cc.do)
- Paste that virtual table name into the Filter Navigator followed by ".do" and hit enter
- This will show a new record form for the set of variables
- From here you can edit the Form View as you would normally do by right clicking the header and going into form builder or form layout
-Here you can change the order of the fields using the up/down arrows

James Warner
ServiceNow Employee
ServiceNow Employee

Just to add to this, if you search for the table through the filter navigator you may see an empty screen. 

The way to get around this is to open up any record view in the Form Builder, and then paste your virtual table name into the URL parameters.  

Screenshot 2024-12-05 at 15.08.45.png

Screenshot 2024-12-05 at 15.07.39.png

 

Then you should be able to re-order the fields as you normally would with a table view.

 

 

That is a thing of beauty. Many thanks!