- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 09:58 PM
Hi Team,
I have UI Action in Incident Form. When I click on that it is converting to request. once I submitted that request, I need to populate a message saying Your Incident is converted to Request : REQxxxxxxx
How Can I achieve this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 11:45 PM
@sriram7You can try below code:
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 11:45 PM
@sriram7You can try below code:
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 11:59 PM
@sriram7 But from business rule on request table you have to update only that incident from which it is created right?
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 12:03 AM
HI@sriram7
I'm a bit confused. Maybe I got it wrong.
" I need to populate a message saying Your Incident is converted to Request : REQxxxxxxx "
means that populate the "Additional comments" field of incident ? and doesn't mean showing a message on the page ater insert?
If yes , just use
gr.comments = "Your Incident is converted to Request : " + current.number;
And I can't understand why you are using a br to trigger this.
why not do like this.
In the ui action , create a sc_req_item record.
After the record is created,update the incident record and show a message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 12:10 AM - edited 12-08-2022 12:11 AM
And there is one more thing to note.
The below code only updates 1 record althought the query retuns many records.
Don't forget to change "if" to "while"..