- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 04:15 AM
Hi All,
I am trying to populate due date on sc_task and also on ritm based on a variable (effective date) in one of my catalog item.
So, when effective date is filled, the same date has to populate on sc_task and ritm
I have written a BR on sc_Tasktable before insert
var effdt=current.request_item.variables.effective_date;
if(effdt != '')
{
current.due_date = effdt;
}
This is making sc_Task due date to set, from here how can I set the RITM due date with effective date.
Please suggest
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 04:30 AM
Yes, you can but if it is following the same flow, I think it will be a better idea to keep it in workflow/flow than in BR.
From performance as well as maintainability point of view, if you are building a solution for a specific requirement which caters to particular set of tasks, BR is not a good idea at table level.
Just think from this perspective, your RITM and sctask table grows by a lot over time and this BR will run every time there is a insert and at least has to go through condition checking, whereas in your workflow dedicated for these catalog items, will only be specific for records for these catalog items.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2022 01:45 PM
I have the same question. I added