How to autopopulate user's company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 10:41 AM
Hi All, How to autopopulate user's company based on opened for user once submit the request from employee center.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 09:05 PM
Hello,
You can write a before Insert BR for this.
If my answer helps you in any way please mark it as correct or helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 09:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 09:42 PM
Hi @sri001 ,
You can write this BR (can use Async BR)-
(function executeRule(current, previous /*null when async*/) {
var openedForUser = current.opened_for.user;
if (openedForUser) {
var company = openedForUser.company;
current.company = company;
}
})(current, previous);
Mark my Answer Helpful or Accept Solution if it resolves your issue.