
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2019 07:08 PM
Good day everyone!
Does anyone know why the window.location.href is not working in client script?
It shows the error :
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2019 07:40 PM
Hi David,
The window object is not available when running the client script with "Isolate script" ticked (and not at all in Service Portal). If you are running the client script on the Desktop then you should be able to untick "Isolate script" for that client script. Should work once you do that.
Brent
P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2019 07:40 PM
Hi David,
The window object is not available when running the client script with "Isolate script" ticked (and not at all in Service Portal). If you are running the client script on the Desktop then you should be able to untick "Isolate script" for that client script. Should work once you do that.
Brent
P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2019 09:20 PM
Perfect!!!!! Thank you 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2019 11:09 PM