
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 09:04 PM
I would like to be able to update the RITM with a comment added to an approval request via a flow, is there a way to do that?
Example:
- New catalog item logged
- an approval goes to Team A
- someone adds a comment to the approval when they approve it
- I then want to update the RITM with some regular text
eg: The approval from Team A has now been given and the following comments were added: - - - - - - - - Next step in the flow occurs
Obviously this becomes even more important if for some reason the approval is rejected.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:54 PM
Hello @Moedeb
You can do "lookup record" on the sysapproval_approver table and using the condition of "approving" is "Trigger - Requested item" data pill.
Then you can get comments by approval records - comments" data pill.
You can update the same in the RITM comments by update record.
Please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:54 PM
Hello @Moedeb
You can do "lookup record" on the sysapproval_approver table and using the condition of "approving" is "Trigger - Requested item" data pill.
Then you can get comments by approval records - comments" data pill.
You can update the same in the RITM comments by update record.
Please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 02:18 PM
@Ravi Chandra_K thank you very much, works for what I asked for.
The only think now is, how to remove the text before the actual comment - the date/ person making the update etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 07:27 PM
Hello @Moedeb
Something like this...
Newcomments = current.comments.getJournalEntry(1).match(/\n.*/gm).join('').replace(/^\s*\n/gm
Please refer the below thread:
Please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra