how can i set the work notes updated by system administrator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2020 03:03 AM
we have a business rule which will set the approvals no longer required, in the business rule we have given the work notes as "approvals are auto mated by system"
but finally the work notes are being updated. but not by the system. with the name of the user who triggered the BR.
so how can i make the work notes updated by system administrator not by the user not triggered the BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2020 04:48 AM
grChange.work_notes.setJournalEntry("Change Management Approvals are Auto Approved by System", 'Admin');
will this work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2020 04:56 AM
Nope, the syntax is wrong, you can't use the user in the second parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2020 02:04 AM
ok, but its working. can you correct it Alberto?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2020 03:15 AM
Hey
please follow following thread
Thanks,
Shrutika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2020 05:35 AM
var msg = "Change Management Approvals are Auto Approved by System";
gr.work_notes.setJournalEntry(msg, 'Admin');
gr.update();
try this
