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 II
Super User II

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,479)