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-28-2025 03:02 PM
Just make your BR as before and on insert with the same code. You can remove 1st line of code var incident I’d = current.number;
If my response helped, then please accept the solution and hit thumbs up. This will help me and future readers.
Regards,
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 03:08 PM
hi, thank you for your answer, but what part of this code that you sent, will be populate the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 03:12 PM - edited ‎03-28-2025 03:13 PM
Hi @Rafael Batistot ,
The below code. Which you already have. Just remove the one which is mentioned above this. Please try and let me know if it helped.
current.u_activity_2 = current.number;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 03:17 PM