- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 02:20 AM
Hi all,
this is my use case: the incident/RITM will close automatically at submit sending a notification mail to user who open it.
It's also needed to add a comment and resolution note with the same content of notification.
I've got a problem with additional comments: if i wrote
current.comments = "example comments";
i can see the comment, but it's posting this as a user, not as a system. I want to post these comments as a system or as another specific user.
I have also tried the below solution, but it didn't work.
current.comments.setJournalEntry('example of comment', 'system');
thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 10:36 PM
Tried Filipe's solution. It is working as expected. Refer below screenshots :
In your case, you need to pass the comment dynamically so you can follow below approach. In your Script action, store the event parameter 1 value in a variable and pass it to the comments field.
and while calling the event in your record producer, pass the comment as a parameter as shown below :
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 02:38 AM
Can you please let me know what is the error message you are getting ?
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 02:48 AM
I don't have problems, but the user isn't "System" but it's the same user that open the incident:
Thanks 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 02:55 AM
Could you please share the complete code ?
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 02:59 AM
is it ok?