- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 11:39 PM
In the Flow Designer, I would like to set "Update Record" action that updates an integer field to add "1" like below:
Field_A's current value: 0
--> Update the value to "1" (0 + 1) with the flow action.
*I'm planning to use this field to set a loop action using "Do the following until" flow logic.
Please let me know how to add (increase) number in the "Update Record" action.
Best Regards,
Aki
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 02:11 AM - edited 10-20-2022 02:13 AM
Toggle to Scripting
Click on the Highlighted icon to toggle to script.
This Script box appears where you can write the code.
Write below script -
Thnaks,
Chinmay.
If this anwer has helped you then please mark as this answer as correct.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 12:21 AM
Hello @Aki18
You can use write script to read the integer data and add 1 to it in field mapping script.
Below is example I did in PDI for knowledge view count update:
You need to select your update record step after fd_data. in above script.
Hope this helps.
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 12:51 AM
Hi @Ahmmed Ali ,
Thank you for your reply, but could you tell me how to get and populate the script "fd_data.~~~"? Can I drag&drop to populate it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 01:03 AM
Hello @Aki18
Just open the script editor in field map using the icon pointed in my last answer, the script editor, when you type "fd_data." , you will automatically get suggestions for available data points in the flow.
Let me know for any issue.
Thank you,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 02:11 AM - edited 10-20-2022 02:13 AM
Toggle to Scripting
Click on the Highlighted icon to toggle to script.
This Script box appears where you can write the code.
Write below script -
Thnaks,
Chinmay.
If this anwer has helped you then please mark as this answer as correct.