Help with script include returning an error to mobile app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
23m ago - last edited 8m ago
I created a function for catalog tasks in ITSM Mobile Agent. The function works fine and separately the script include works fine, but one line in the script include causes an error in the mobile app and I can't figure out why.
I know my function in the mobile app is working because I have run it line by line to figure out where it is failing. I also know my script in the script include is functioning because I ran it separately in backgrounds scripts and it ran without failure.
The script is simple, I'm just adding a row to a multi-row variable set on the requested item.
This is the code from the script include - it's failing on the code highlighted in orange:
Can anyone tell my why the script works in the core UI but not from a mobile writeback action? Again, I know the writeback function works because it runs the script include and I have input data in the logs.
This is the writeback action:
The variable set's asset_disposition is a Select box with three choices including none: surplus, available, repair.
The field on the mobile input form is a Choice, and I made sure the labels and values match exactly what is in the variable set.