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 / PowerApps and Auto Num...
Power Apps
Answered

PowerApps and Auto Numbered SP List

(0) ShareShare
ReportReport
Posted on by 1,088

I have a SP List that has an auto number column setup using SP Designer.

 

In powerapps I want to be able to create new entries and work with them...

 

But what happens is new entry is created it shows up in powerapps but it takes a few seconds for the autonumber to generate the number.  So then if I try to edit the item, it says it can't find it.  Because after the form is posted is still before the unqiue id is generated if that make sense.

 

Thanks,

Terry

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @Mattw112IG ,

    Your SP Designer WorkFlow generally works fairly quickly, especially if this is the only action it is doing, so you could use a Timer  - reference here (hide it is you want) Start  - vTimer - Variable at set at the end of the code before you edit it.

    UpdateContext({vTimer:true})

    Duration - maybe 10 seconds (10000 milliseconds) OnTimerEnd

    UpdateContext({vTimer:false});
    Remainder of the code locating the number just generated.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Mattw112IG ,

    Do you mean that it has some delay on generating auto number column?

    Yes, it is possible.

    Here are some solutions that you could choose:

    • not use the auto number column to find the latest created item, use ID field

    ID field is a metadata field in sharepoint list, which will generate at the time the item is created.

     

    Could you describe more clearly about how to navigate to the edit form after you submit the new form?

    I assume that you want to click a button to submit the new form and then navigate to the edit form

    Try this:
    1)set the screen's OnVisible:

     

    Set(var,false)

     

    2)set the submit button's OnSelect:

     

    SubmitForm(Form1);Set(var,true)

     

    3)set Timer's Start:

     

    If(var,true,false)

     

     set the Timer's OnTimerEnd

     

     

    Navigate(editfrom)

     

     

    set Timer's Duration:

     

    10000 //just an example, you could change to shorter or longer time that you want(it represents the delay time)

     

    You could set the Timer's Visible to false.

    Then after you click the button, you will submit the new form. Then Timer will start, after the delay time, you will navigate to edit form.

     

     

    Here's a doc about Timer control for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-timer

     

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard