cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kriggo15
Post Patron
Post Patron

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

@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
ChristianAbata
Super User
Super User

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

@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

@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

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,303)