Client scripts in Mobile Agent App

naga91n
Tera Contributor

Hello everyone,

Is it possible to use client scripts in the Agent mobile app? I tried creating a client script and marked the UI Type as ALL, but this doesnt work on the Agent app. 

So does client script work on Agent app? is there any other way that this can be done. For example, if i change the value of a field then a confirm box should appear, will this requirement possible in the Agent app?

Regards,

Dinesh N

1 ACCEPTED SOLUTION

Joshwa Antony S
Mega Guru

Hello Naga,

Native mobile apps (Agent/Now/Onboarding) doesn't support client script and UI policies. However the catalog item & knowledge article related mobile screens are rendered from mesp portal which supports client scripts.

I created a simple onload client script for Apple Ipad 3 (OOB catalog item) with alert and I have added a quick action to open the item from Agent App and I got alert successfully in Agent app.

Remaining screens of the app are completed based on applets, ui and action parameters etc.., We have mobile UI policies (Screen UI policies) to toggle the field visibility in native mobile apps, but for now the capability of this mobile ui policies are limited like you cant script anything here. Hopefully we have better control on this in future.

Please mark my answer correct/helpful.

Regards,

JAS

 

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Dinesh,

please go through below links:

https://community.servicenow.com/community?id=community_question&sys_id=c04a257cdb3cffc4fece0b55ca96...

https://community.servicenow.com/community?id=community_question&sys_id=c015ccb5db7148d05129a851ca96...

https://community.servicenow.com/community?id=community_question&sys_id=cd906384db66bf80a39a0b55ca96...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

You have presented problems with the related variables in the action elements, I want to establish a field in element is transfer order number and in actions a text field that receives the transfer order number but when arriving at the action element it does not create the transfer order line because the action item loses value.

 

Excellent afternoon.

 

Joshwa Antony S
Mega Guru

Hello Naga,

Native mobile apps (Agent/Now/Onboarding) doesn't support client script and UI policies. However the catalog item & knowledge article related mobile screens are rendered from mesp portal which supports client scripts.

I created a simple onload client script for Apple Ipad 3 (OOB catalog item) with alert and I have added a quick action to open the item from Agent App and I got alert successfully in Agent app.

Remaining screens of the app are completed based on applets, ui and action parameters etc.., We have mobile UI policies (Screen UI policies) to toggle the field visibility in native mobile apps, but for now the capability of this mobile ui policies are limited like you cant script anything here. Hopefully we have better control on this in future.

Please mark my answer correct/helpful.

Regards,

JAS

 

Thank you so much Joshwa