insert value with Busines Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 02:51 PM
Hi Team
i have this simple code with Business Rule. This rule it's running in incident table
i want to when i open any incident record number of incident needs to be inserted in this field "u_activity_2"
But it's not can be like display, needs to be modification with this symbol because if i take an report this value will be there
I need to do it with BR not Client Script
(function executeRule(current, previous /*null when async*/ ) {
var incidentId = current.number;
current.u_activity_2 = current.number;
})(current, previous);
Thank's advanced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2025 01:20 AM
Hello Rafael,
First of all, why would you want to populate a field with the same value that is already present in another field (Number)? What is the exact business requirement?
The solutions pointed out by the others should work fine. You can even create that Business Rule without scripting (replace "Description" in my example with your custom field):
Also, what is the data type of this "Activity 2" field? Is it a string or a journal field?
Regards,
Robert