Mobile Action Item script with data parameter and input form screen

Lemontree
Kilo Expert

Hey Mobile Pros,

 

I have an action item with a data parameter and an input form screen with an input. Now I want to access both inputs in the action item script via "input.name". However, the data parameter input no longer seems to be available if an input form screen is also defined on the action item. So now I only get back the input from the Input Form Screen and no longer the Data Parameter. I can think of the following solutions, if they are possible from ServiceNow:

 

1. Do you know a way to access both inputs in the action item script?
2. Is it possible to pass the data parameter to the input form screen with a mapping table? Can I access UI parameters in the Input Form Screen?

 

Best regards 🙂

3 REPLIES 3

Wesley Govis
ServiceNow Employee
ServiceNow Employee

Hi @Lemontree ,

Can you please share your action item script? Depending on what you're trying to do exactly, you can possibly use a variable in the input screen and reference it via parm_variable.

Lemontree
Kilo Expert

Hey @Wesley Govis

 

Thanks for your feedback . Unfortunately you misunderstood me. I can of course use a variable via input screen and it works wonderfully. The problem is that I can't use this functionality together with a Data Parameter. Because access to the data parameter via script is no longer possible as soon as an input form screen is used. Both features work alone, but not together = I can use either a Data parameter or an Input Form Screen, but not both together.
In my case I have a value from a previous record screen that is passed via data parameter. However, on the current screen I need another parameter that is queried via the input form screen. This makes access to the data parameter in the action item script impossible by ServiceNow because the object is overwritten.

 

Best regards

Jose Manuel
Tera Contributor

This doesn't work.

JoseManuel_0-1716514944835.png

 

I have the same issue, I need to use a data parameter inside my script in order to make some logic with the previous record. Did you find something?