Flow Designer - Script to increment field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2021 03:19 PM
Hi Experts,
Need your inputs:
Trying to increment a integer value through flow. screenshot below
i could see trigger and update action being executed, but no update in field value defined. is this correct syntax?
- Labels:
-
Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2021 04:13 PM
Hi santuraj12,
You syntax needs some slight change
var x = parseInt(fd_data.trigger.current.u_my_count);
//x++; //This is when you want to increment by 1. in that case you dont need to use the parseInt to parse the fd_data.trigger.current.u_my_count
x += 2; // this is when you want to incrtement with anumber other than one, in this case you need to use parseInt to parse the fd_data.trigger.current.u_my_count
return x;
Cheers,
Sam
Mark helpful/correct if this helps you 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2021 03:49 PM
Hi Sam,
Can you help me? I want to increase a value by one and then multiple the value by another integer value on that same record. Here is what I have, but it isn't returning the expected values: