- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2022 07:10 AM
Hi team. I have created a record producer in a scoped application that updates a custom field called additional_details. I have been asked to copy everything from the additional_details into Work Notes when the record is created. I figured I would just create a Business Rule that ran on insert to copy additional_details to work_notes. However, when this didn't work, I found an article or doc explaining you can't acheive this across scopes.
How else can I copy additional_details to work_notes?
I've tried creating a Cross scope privilege record from my scope to global (table \ task \ write \ approved), but that didn't work
I tried direct from the script field where I set the additional_details field
I can get it to work via an onChange Client Script, however, it doesn't work when the record is created
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 06:05 AM
I got this working in the end via a Business Rule, I just had to change the "script":
(function executeRule(current, previous /*null when async*/) {
current.work_notes.setDisplayValue(current.additional_details);
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 07:08 AM
Hi all , I write this BR for location field but show me the sys_id of location in work note . can you help me please .
(function executeRule(current, previous /*null when async*/) {
current.work_notes.setDisplayValue(current.location.toString());
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2024 11:43 PM
Hi @maryam7 ,
its better to store location value inside a variable.
you can use below code in your BR to get and set value of work_notes.