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 Apps / How to split record Id...
Power Apps
Answered

How to split record Id number and increment when press button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I wana split and increment my number in every click of button.

Suppose ID=RRN0121, when I click button ,it increment like this , RRN0121.01,RRN0121.02 .....and so on

 

how we achieve this , I tried with split but not success

Thanks,

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Chitrakant27 

    Your question is not compltely understood, here is a way to increment a variable.

    UpdateContext({_number: _number + 1})

    UpdateContext({ someVariable: ID & "." &  _number}) 

     

    Result

    increment.gif

    Having the ID you do not need to split it. Can you give more information on your use case, will you be saving the incremented value etc.?

     

    Hope it helps,

    R

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @rubin_boer ,

     

    I am using  same but it will increment like RRN0126.1, RRN0126.2and so on 

    I need RRN0126.01,RRN0126.02,RRN0126.03.....

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Chitrakant27,

    Do you want to increase the RRN by 0.01 once you click the button?

     

    Here is a simple demo for your reference:

    1). Create a variable as below to extract the number within, note I display this RRN number within a TextInput:

    Set(varID,Value(Substitute(TextInput9.Text,"RRN","")))

    I usually put this formula on the OnVisible property of the current screen.

    2). Format the RRN number by the concatenate() function as below:

    Concatenate("RRN",Text(varID,"0000.00"))

    vqiaqimsft_0-1663834765848.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard