Scoped access to user/session domain

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 05:28 PM
Has anybody come up with a work-around to getting a user's domain within their session? Slightly different than getting the domain off their User > Company > Domain record, since certain users can switch domains. Looking for a scoped version of gs.getUser().getDomainID().
I liked coryseering's suggestion in this discussion: gs.getUser().getDomainID() not working in scoped application scripts, however it requires inserting a record to set the domain (as mentioned in the last post). I can make that work, but was hoping there's some other magic I'm overlooking.
Thoughts?
Thanks!
Jeremy
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 10:29 PM
Hi Jeremy,
I was trying to check if GlideTransaction() API is accessible from scoped app, but unfortunately, it also does not work.
I guess inserting a record is only option then.