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 / Price from NewForm not...
Power Apps
Answered

Price from NewForm not saved in Editform

(1) ShareShare
ReportReport
Posted on by 62

Dear Power Apps Community,

 

i am programming an App for requesting and accepting/rejected Items.

This App is connected to a sharepoint list.

 

This App contains an Editform to edit rejected items.

A Button then submits a flow for the request.

 

I am now looking for the right "OnSelect" propertie for that Button.

For new items i was using this:

 

SubmitForm(EditMenuForm);

Bestellfreigabe_1.Run(Last(Bestellfreigabe).ID)

 

Bestellfreigabe_1 being the flow and Bestellfreigabe the sharepoint list

 

The "Last" command doesnt work for rejected items, as they may be no longer on the bottom of the list.

Do you know, how to adress the current sharepoint item for the code?

 

Thanks in advance

Sincerley

grandepaci

Categories:
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @grandepaci 

     

    Get Last Submit ID

    SubmitForm(EditMenuForm);
    Bestellfreigabe_1.Run(EditMenuForm.LastSubmit.ID)

     

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    You should also move your flow run to the OnSuccess part of the form - currently even if the form fails to submit or has an error, your flow will run.

     

    OnSelect of Submit button:

    SubmitForm(EditMenuForm);

     

    OnSuccess of Form:

    Bestellfreigabe_1.Run(EditMenuForm.LastSubmit.ID)

     

    Cheers,

    Sancho

  • Ram Prakash Duraisamy Profile Picture
    5,891 Super User 2026 Season 1 on at

    Hi @grandepaci,

     

    In Onselect of Button try

     

    SubmitForm(EditMenuForm);

     

    Then Click on Form and Select OnSuccess write the below code

     

    Bestellfreigabe_1.Run(EditMenuForm.LastSubmit.ID)

     

    Because if you are running the flow simultaneously then the update can't be available ontime.. so it will be available only on Success of the form, so we can use above functionality to achieve the same.

     

    Please Mark as Answer if it's helpful

    https://microsoftcrmtechie.blogspot.com

    https://youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

     

     

     

     

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard