- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 01:33 AM
I've written the following script within my business rule to state that a field has been updated alongside the name of the Business Application Steward:
(function executeRule(current, previous /*null when async*/) {
var businessApplicationSteward = current.getValue('u_cmdb_data_steward');
var technicalApplicationOwner = current.getValue('u_custodian');
if ((current.u_business_application_type.changes() && gs.getUserID() == businessApplicationSteward)) {
current.work_notes = 'The Business Applicaion Type field has been updated by the Business Application Steward '+ businessApplicationSteward.name;
}
})(current, previous);
However when I do that, I get the following outcome:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023 07:32 AM
I've found the solution by doing the following:
//If the Heritage field changes and was updated by the Application Service Steward
if ((current.u_heritage.changes() && gs.getUserID() == applicationServiceSteward)) {
current.work_notes = 'The Heritage field has been updated by the Application Service Steward '+ applicationServiceStewardName;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 02:16 AM
replace your line of adding worknote with following:
current.work_notes = 'The Business Applicaion Type field has been updated by the Business Application Steward '+ current.u_cmdb_data_steward.name;
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023 07:32 AM
I've found the solution by doing the following:
//If the Heritage field changes and was updated by the Application Service Steward
if ((current.u_heritage.changes() && gs.getUserID() == applicationServiceSteward)) {
current.work_notes = 'The Heritage field has been updated by the Application Service Steward '+ applicationServiceStewardName;
}