Script Cannot retrieve requested item variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 10:44 AM - edited 04-02-2025 10:45 AM
I know that this makes no sense, but it's happening.
I have a catalog item with a handful of variables plus a few variable sets. In the workflow scripting I have a few lines that look like this:
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:33 AM
Hello @johnfeist
What type of field is this ?
Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket.
Regards,
Shivalika
My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194
My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 12:25 PM
Hi Shivalika, it's a string that is listed in a select box.
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:35 AM
Have you logged the current user to confirm the user that the script is executing as? Is this Catalog Item (and the variables) in the same scope as others? Have you tried testing with a display Business Rule on the sc_req_item table on a record where you can see the variable and value on the form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 12:39 PM
Hi Brad,
The user is me and I have full admin rights. Everything is in Global scope. I can see the values on the sc_req_item display of that request no problem. Having done a little debugging on the script, I'm able to get the value that I need by going through sc_item_option_mtom and sc_item_option. While not ideal, it works.
:{)
:{)
Helpful and Correct tags are appreciated and help others to find information faster