How to update variables in RITM using Flow Designer?

Radhika11
Tera Contributor

I need to update the variable values in RITM through using flow designer?  Please provide suggestions.  Thank you

13 REPLIES 13

@Radhika 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Radhika11
Tera Contributor

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.

DirkRedeker
Mega Sage

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... 

find_real_file.png

The next screenshot shows the choices for the option to SAVE or not to SAVE.

find_real_file.png

 

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.

find_real_file.png

find_real_file.png

 

The Action Output

find_real_file.png

 

 

 

Using the Action in a Flow looks like that:

find_real_file.png

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

 

 

 

 

 

 

 

Radhika11
Tera Contributor

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.

find_real_file.png

Here are the screenshots.  Hope you can provide suggestions.  Thank you so much!

 

find_real_file.png

 

find_real_file.png

find_real_file.png

find_real_file.png

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):

find_real_file.png

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