Agent Mobile App - Show Variables in form (sm_order)

Kamlesh Prasad
Kilo Expert

I would like to know if there is a way we can display Variables in Agent Mobile App form screen for Service Management tables "sm_order" as we can show in Desktop version by selecting "SM Variable Editor" in form.

Ex: Facilities  Requests, Legal Requests etc are few examples of tables derived from sm_order table

I got post https://community.servicenow.com/community?id=community_question&sys_id=8093d5d3db1ab3045129a851ca96... which might help on showing as action to display in new page but I need it to show on Agent Mobile App form screen itself.

1 ACCEPTED SOLUTION

Kamlesh Prasad
Kilo Expert

I figured out how it can be done for SM (sm_order) and it's related table. There is no "Variable" field on this table for selection but "Question" (backend value "variable") field for selection.

 

However, when we select directly on Applet form screen it shows error "java.lang.NullPointerException Check logs for error trace or enable glide.rest.debug property to verify REST request processing". This might be a Bug that Service-Now has to fix.

It can be selected by going to Applet menu (left navigation), opening corresponding Form Screen Applet and selecting "Question" as additional screen field on Details screen. We observe as sson as Question is selected it shows as "Variable" in Screen Fields form.

I am adding screenshot for more details:

 

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

View solution in original post

5 REPLIES 5

Kamlesh Prasad
Kilo Expert

I figured out how it can be done for SM (sm_order) and it's related table. There is no "Variable" field on this table for selection but "Question" (backend value "variable") field for selection.

 

However, when we select directly on Applet form screen it shows error "java.lang.NullPointerException Check logs for error trace or enable glide.rest.debug property to verify REST request processing". This might be a Bug that Service-Now has to fix.

It can be selected by going to Applet menu (left navigation), opening corresponding Form Screen Applet and selecting "Question" as additional screen field on Details screen. We observe as sson as Question is selected it shows as "Variable" in Screen Fields form.

I am adding screenshot for more details:

 

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Kamlesh Prasad
Kilo Expert

I initially checked it for sm_order tables but it can be achieved for any Task table (OOB or Custom) those are extended from Task (or it's child table).

Another idea which I used to create a custom Details screen (Name: Variable) on Task table and add variables (Questions) as per the previous screenshot. Now, this Detail screen can be added to any applet where we would like to show variables.

Hi kamlesh_prasad,

 

Thank you for sharing!

 

For the earlier defect you ran into, please also open up a case/ticket so that our technical support team is tracking it and can take a closer look into this.

 

Best,

David

This worked for me, thank you so much!

Just fyi for others, it took me a bit to find the 'Form Screen' record, but it is on the sys_sg_details_screen table.