Mobile Action Item script with data parameter and input form screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 02:11 AM - edited 03-20-2024 03:50 AM
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 🙂
- Labels:
-
Mobile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 05:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 03:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 06:44 PM
This doesn't work.
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?