Business app status showing incorrect value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 01:21 AM
Hello,
I am trying to update the status of business application to retired through a catalog item workflow.
My workflow has following script :
gr.setValue('install_status', "3"); //Retired = 3 in backend choice table
On completion of the workflow, there is weird issue where the status is updating the value to 7 and in choice list table i do not see any new entry with this value.
There ain't any other script running in parallel and this issue is observed in xanadu.
I found this KB Article but if i do this configuration change, it's creating a new value in choice table.
Any insights how to trouble shoot this ?What could be the possible reason, If it's creating any new record with value 7, it should atleast appear in backend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 01:28 AM
ideally it should not as per that KB
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 02:00 AM
Hi @SNDEV27
Verify that "3" corresponds to "Retired" in the backend choice list table (sys_choice table). Ensure there are no duplicates or conflicting entries for "3" that might be causing confusion.
Review your workflow script carefully (gr.setValue('install_status', "3");). Ensure there are no typos or other logic that could inadvertently change the value to "7". Double-check if there are any conditions or asynchronous updates that might affect this field after your script runs.
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 02:51 AM
Hi Ravi,
This an old logic implemented and is working fine on other instances which are in washington. This particular instance where it's updating to 7, was recently upgraded to xanadu. So not really sure if it's the instance version as the logic seems to be simple.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:00 AM
To add to this, the status field on form is showing value 7 in dropdown only on records where it is updated. Other business application records donot show 7 in dropdown. Becasue no new value is created in backend in sys choice table.