- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 01:21 AM
Hi All,
asmt_assessment_instance.state : State field is choice field with different languages.
requirement is copy the Display value of asmt_assessment_instance.state to asmt_assessment_instance_question. u_assessment_state. The script probably needs to be run to update the values on the records in the asmt_assessment_instance_question table that have the State in non-English. State value should update with only english language choice value.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 03:30 AM
Hi Ankur,
Thanks for helping, the below script worked
when to run filter Conditions -- state changes
Advanced --condition - current.state != previous.state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 01:50 PM
Hi @Divya K1,
Can you confirm if the u_assessment_state field is a choice type or string type?
If it's a custom choice field, it is going to take the value as per users language.
Let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 12:20 AM
Hi Sahil,
u_assessment_state field is a string type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 03:52 AM
Hello,
So ultimately, whenever the user from other user language will be making any changes then it takes the display value. Did the script shared by Ankur work?
I guess it wont. Here you'll have to additionally glide in sys_choice table and query it to "English" type choices and then populate the field.
Lemme know if you need help in writing the script. Also, mark my answer as Helpful if it solved your issue.
Regards,
Sahil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 04:06 AM
the latest script I shared is about performing GlideRecord on sys_choice
I am awaiting feedback from @Divya K1
Hopefully it should work
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 07:27 AM
Hi Ankur,
I tried with your suggestion by keeping logs as well.. Still u_assessment_state field is updating based on WOT assigned to user language. i checked the logs, i can see the warnings, please find the screenshots