- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2020 11:28 PM
Hi Guys,
I am trying to set 'additional comments' journal field of change form with some answers given by end users for record producers. I can able to set same for existing record but when a new record is being created at the same time i want to set additional comments field. In my script I am getting current.sys_id as blank , so basically my question is how to return sys_id of newly created change request to record producer script?
Working code for existing record in record producer script
{
gr1.comments.setJournalEntry('test');
gr1.update();
}
{
gr1.comments.setJournalEntry('test');
gr1.update();
}
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2020 01:31 AM
You do not need the current.update()
The assignment group is set? (so it gets to the part in the 'if (gr.assignment_group)')
Can you try removing current.update().
You are setting it in the 'Script', right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2020 01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2020 02:05 AM
Bang on Willem:)
It worked out by removing current.update();
I got the logic too.
Many Thanks