- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 12:14 AM
I am creating a simple ui action in a scoped application, even before I enter any code , line one shows red '~'.
after entering the code, when I look at the view problem , it shows the below 3
1. Definition for rule 'sn-no-async-await' was not found.
2.Definition for rule 'sn-no-generator-functions' was not found.
2. Definition for rule 'sn-no-promises' was not found.
Here is script :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 12:24 AM
it should be single = and not ==
current.status = 'In_progress';
current.update();
action.setRedirectURL(current)
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
02-13-2025 12:24 AM
it should be single = and not ==
current.status = 'In_progress';
current.update();
action.setRedirectURL(current)
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
02-13-2025 12:27 AM - edited 02-13-2025 12:28 AM
Not sure how I missed it , it still shows the red symbol on new scripts without any code. However its working fine now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 09:19 AM
Hi Ankur,
I am still facing the error and state is also not updating could you please