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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Autoincrement a string Variable in Power Automate

(0) ShareShare
ReportReport
Posted on by 19

HI,

I am new to Power platform and trying to work on a simple autoamtion where i need to increement a string variable,

How do I increement a string variable in power Automate?

Example :  VarString : C0001

I need to increement this VarStrng by 1 the result would be C0002,C0003,C0004.. so on.

In NAV we have a inbuild function - "INCSTR" that would increment a string variable. Do we have a similar function in Power Automate?

TIA,

Amol

I have the same question (0)
  • Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Hi Amol,

    Can you please check this article?

    It explains how to increment string variables.

    www.spguides.com/.../

  • Amolm Profile Picture
    19 on at

    Thank you, Parag!

    I appreciate you helping here. I went through the article which you shared. However, this won’t work in my scenario.

    Reason :

    The string is “C0001” and I need to increment to “C0002”, “C0003”, “C0004”..  and so on.

    Once I remove the 1st letter and convert the rest to integer the value becomes “1” instead of “0001”.

    In this case, later I need t o append a “C” and extra “0” to match the string length and create the final string value. This would take a lot of extra steps.

    I was hoping to find if we have some inbuild functions which can take care of this.

    In NAV we can use INCSTR() to take care of such increments. Not sure in Power Automate.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans