cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Incrementing value in SharePoint

I have a SP List that has a column, Month (number type, 1-3 valid values). I want my flow to get the month number and then increment it by 1.

What is the proper syntax for this field?

Month ss.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

@ChristianAbata, I was actually able to just figure it out. I added Month in another location of my flow, hovered on it to get the code, and then pasted that into my add function.

This worked for me:

add(items('Apply_to_each')?['Month'],1)


Thanks for your response 

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

hi @kriggo15  you can use the expression add. Like this 

add(Int('HERE YOUR SHAREPOINT COLUM VALUE'),1)

 

 

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted

@ChristianAbata, I was actually able to just figure it out. I added Month in another location of my flow, hovered on it to get the code, and then pasted that into my add function.

This worked for me:

add(items('Apply_to_each')?['Month'],1)


Thanks for your response 

View solution in original post

Highlighted

@kriggo15  excellent my friend, if you consider check my answer as solution to guide others 😉 a Kudo could be great to. 😉

 

Have an excellent day



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted

@ChristianAbata, your code is unfortunately throwing an error for me:

InvalidTemplate. 
Unable to process template language expressions in action 'Create_Next_Follow-Up_Entry' inputs at line '1' and column '2872': 'The template language function 'Int' was invoked with a parameter that is not valid. 
The value cannot be converted to the target type.'.
Highlighted

oh @kriggo15  this is because my example contains Int with capital letter, the expresions are without see

 

int()
 
xD


Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,711)