is it possible redirect to url through script include??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2019 09:36 PM
Hi Team
I have one requirement
I have one UI Page for notify user it has to run continue here or it has to process background.
how i can perform actions in background process after process completion it has to redirect to one url which some records.
Could any body can help on this.
Thanks
Madankumar
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 11:06 PM
Hi Ankur
Is it possible when i click on button1 it has to run processing , if i click button it has run only client script it no need to run processing ?
If it is possible Please provide some sample script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2019 12:29 AM
Hi Madan,
I think you can control whether processing script has to be run or not based on this
1) create hidden html element
2) you are creating one button which when click should allow to run processing script at the end; set the hidden html element value
3) check in processing script whether value for that hidden html element is set or not
4) if set it means processing script has to run
5) if not then don't run processing script
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
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
08-13-2019 03:22 AM
Hi Madan,
Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
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
08-07-2019 10:01 PM
Hi Madankumar N,
As you mentioned that you want to redirect URL which has some records, try this story by using UI Action with the following syntax :
action.setRedirectURL ( 'http://wwww.servicenow.com' ) ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2019 10:05 PM
Hi Jyothi Thanks for quick reply.
Am trying from UI page this one not in UI action