web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Increment a variable i...
Power Automate
Unanswered

Increment a variable in a CSV table with mySQLdata

(0) ShareShare
ReportReport
Posted on by 691

Hello, I am creating a CSV table with mySQL data and I would like for each row of the table, there to be a number that increments by 1 in the "Temporaire_ID" field. Can you help me please ?

s44_0-1709032126894.png

 

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,424 Moderator on at

    You can achieve this by combining length with range in a select action. If you want, I can make you a quick video that describes what I mean.

  • Hii_iii Profile Picture
    691 on at

    Yes, I would like an explanation please ^^

  • David_MA Profile Picture
    14,532 Super User 2026 Season 1 on at

    Use the add expression to add 1 to the value from Excel. 

     

    add(outputs('Get_a_row')?['body']['Temporaire_ID'], 1)

     

     

    You may need to force the Excel value to an int if you get an error.

     

    add(int(outputs('Get_a_row')?['body']['Temporaire_ID']), 1)

     

  • Paulie78 Profile Picture
    8,424 Moderator on at

    Here you go:

     

    https://youtu.be/-fqa4upEZhE

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

  • Hii_iii Profile Picture
    691 on at

    what is outputs('Get_a_row') ? :0 @David_MA 

  • David_MA Profile Picture
    14,532 Super User 2026 Season 1 on at

    Looking at what you posted again, I think I misread what you need. I would look at the video that @Paulie78 created for you, which seems to be what you need. I thought you already had an ID value created and just needed to increment it by 1. But, you need to generate the initial value which is what @Paulie78 is doing in the demo.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard