How to update variables in RITM using Flow Designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2021 01:52 AM
I need to update the variable values in RITM through using flow designer? Please provide suggestions. Thank you
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2021 09:27 AM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
If not, please let us know if you need some more assistance.
Thanks!
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2021 11:32 AM
Hello Ankru,
Thank you for asking. I'm doing fine and I hope that you and your family are doing great as well.
Please allow me sometime to test out this action. Will let you know soon. Again, thank you so much for your time and effort.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2021 03:44 AM
Hi
I was a bit curious about this and did a test-drive on my own, which I wanted just to share with you here.
I created a NEW "Flow Action" in Flow Designer with the following configuration (see screenshots below):
Action Inputs
The Action Inputs are the parameters, that your Action accepts to control what happens:
a) RITM Record : Will be the reference to the RITM with the variables to update (usually from the trigger record)
b) Variable name: Filled with the NAME of the Varibale, that you want to be updated
c) Variable value: The NEW Value, that you want to write to your Variable
d) a choice field to select, if you want to SAVE the current RITH record back to the Database, or just want to change the variable value. (Note: SAVING will not only save the ONE Variable, but ALL changes of the RITM Record!!!!). In a variant of this Action, it could be made possible to update ONLY the variable, by NOT updating the RITM table, but by updating the table, where the variables are stored...
The next screenshot shows the choices for the option to SAVE or not to SAVE.
The Action Script Step
The script first maps the ACTION INPUTS to the SCRIPT INPUTS, and in the script updates the variable and saves if wanted.
The Action Output
Using the Action in a Flow looks like that:
I hope this short description is understandable.
Let me know if you have any further questions on this?
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2021 11:13 PM
Dirk,
I could not thank you enough for spending your time and effort on writing such an excellent document.
It was very easy to understand and follow. I followed your steps exactly, but I ran in to the following error when I tried to publish it. I couldn't find where I screwed up.
Here are the screenshots. Hope you can provide suggestions. Thank you so much!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2021 07:22 AM
Hi
Thanks a lot for your nice feedback. Glad, that it was understandable and you like it.
I hardly could read your screenshots, but as far as I can see, you need to delete the last line (an incomplete parameter line) of the STEP inputs (shown in the screenshot below):
Give it a shot and let me know.
Why are the screenshots you take so blurred?
I take a free tool called "Greenshot" on a Windows Box. That tool is brilliant for screenshots.
Just insert the images via clipboard.
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk