How to set the initial domain of a record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2018 08:22 AM
How can you force a record to load in a specific domain?
There is a sys_domain field on the record I am looking at and I can update the value using a display business rule or client script but it's not loading the correct view of the form until after I save/insert the record.
How can I force which domain a new record should display in?
current.sys_domain = current.account.sys_domain is setting the form field correctly but it looks like after the form view has been decided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2018 05:18 AM
Hi Wilber,
What we did in one of my previous account is to use user's domain as reference. Say Akash is a user with Domain as Wipro is accessing an incident form to create a new record, in that case use this domain and configure to whatever your needs are.
Like - current.sys_domain = gs.getUserID().sys_domain. This ensures the future created record separation between domains to be restricted to a particular domain and user can't see other domain incidents. Hope this gives some insights to your issue.
Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.