- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 10:10 PM
Hi all,
Would like to know how we can detect if there is any field change on the form, when a UI action button is clicked.
I tried to use current.changes(); but this is not supported in UI Action, the same with GlideScriptRecordUtil which is not supported for scoped application.
Regards,
Ram
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021 12:14 AM
You can use this logic for scoped application
It worked well for me earlier
How to get Changed or Modified Fields in ServiceNow Scoped Apps?
Regards
Ankur
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-11-2021 10:37 PM
tried similar in PDI and working as expected
You can check the length of the array returned by gru.getChangedFields() above to check if any field value changed.
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 11:50 PM
GlideScriptRecordUtil is not allowed in scoped applications.
So i cannot use this in UI action. Any other way, please let me know.