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 / OnSelect.run -flow is ...
Power Apps
Answered

OnSelect.run -flow is not using correct ID from Form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I have encountered to an issue that is driving me nuts. I have a button with simple function:

 

SubmitForm(SharePointForm1);'CapexRequest(New)'.Run(DataCardValue7)

where DataCardValue7 represents ID of the request.

 

My problem is that whenever user is creating new request, the flow won't run with this just created request's ID, but is running with ID of first request in the list. Hovewer when I run this flow on already created item, ID is correctly selected.

 

Do you people have any suggestion, what might be causing this issue? Since an update from last week, these basic functionalities are out of the window.

 

Many thanks

Lukas

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi Lukas,

    The LastSubmit property of a form will return the item that you submitted, as well as any server generated values.

    Therefore, you might have more success if you use syntax that looks like this:

    SubmitForm(SharePointForm1);
    'CapexRequest(New)'.Run(SharePointForm1.LastSubmit.ID)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Wonderful, works like a charm. Many thanks.

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