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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Edit the id in the sha...
Power Apps
Unanswered

Edit the id in the sharepoint column and show it in powerapps

(0) ShareShare
ReportReport
Posted on by

Hello everyone, 

 

There is the original SharePoint ID column, but I want to create a column to format the ID as:

 

"ID000040" and if it is ID = 1 it will appear like this = "ID000001".

 

Would this be possible in PowerApps?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    If you are doing this on the creation of a record and are using a Form, then you can utilize the OnSuccess action of the Form and add a formula such as this:

    UpdateIf(yourDataSource, ID=yourForm.LastSubmit.ID, 
     {yourOtherColumn: "ID" & Text(yourForm.LastSubmit.ID, "000000")}
    )

     

    I hope this is helpful for you. 

  • Gorilla_8 Profile Picture
    on at

    @RandyHayes 

     

    Thanks for the help, but I tried here, and didn't show the ID

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    The supplied formula should be working for you.  

    Where have you placed the formula and what does your formula look like at this point?

  • Gorilla_8 Profile Picture
    on at

    @RandyHayes 

     

    I put this code on OnSuccess on the form:

    UpdateIf(FichaDeDemanda; ID=FormGeralNew.LastSubmit.ID; 
    {IDTeste: "ID" & Text(FormGeralNew.LastSubmit.ID;"[$-pt-BR]000000")}
    );;ResetForm(FormGeralNew)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    Works great here and your formula looks fine.  So, what kind of column is IDTeste ?

    Also, is your form actually submitting successfully? 

  • Gorilla_8 Profile Picture
    on at

    @RandyHayes 

     

    So, what kind of column is IDTeste ?

     

    Its a text simple column

     

    Also, is your form actually submitting successfully?

     

    yes, it is

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    I don't know what to tell you... This is a very simple formula that works well.

    RandyHayes_1-1611672765412.png

    RandyHayes_3-1611672835038.png

     

    Are you using SubmitForm to submit the form or are you bypassing that?

     

    You can attempt to troubleshoot by placing this in the OnSuccess as well:

    UpdateContext({testOut: "ID" & Text(Form1.LastSubmit.ID, "000000")})

    Put this as the FIRST line of your formula (before you resetform).

    Then after submitting, look at your variables and see what testOut is set to.

     

     

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @Gorilla_8 

    This is strange because what Randy says should work correctly.

    On the off chance, the only other thing I can suggest to is to wrap your reference to FormGeralNew.LastSubmit.ID in a call to Value, which would ensure that Power Apps recognises that as a number.

    UpdateIf(FichaDeDemanda; ID=FormGeralNew.LastSubmit.ID;
     {IDTeste: "ID" & Text(Value(FormGeralNew.LastSubmit.ID);"[$-pt-BR]000000")}
    );;
    ResetForm(FormGeralNew)

     

  • Gorilla_8 Profile Picture
    on at

    @RandyHayes  and @timl 

    Didn't work for me guys...

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    What is the formula for the submit button you are using?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard