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 - Retake som...
Power Apps
Unanswered

Powerapps - Retake some order from an (SQL) table

(0) ShareShare
ReportReport
Posted on by 250

Hey guys,

 

I have a problem, am trying to find a way how to reuse an order, i use a table to display the items and a form that display the select items where I can modify the QTYS of each items then a submit.

Once submitted by a SQL stored procedure all the QTYS and back to zero (table) and (database).

 

Am looking for a way to reuse the order and display to the table and database the some QTYs to the same items.

i Have tried :

 

UpdateIf(TableName, CollectionName)

 

 Cant find the perfect conditions.

Categories:
I have the same question (0)
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    You want to show your users the last order submitted, is that it?

  • loopingmurdock Profile Picture
    250 on at

    I want the user to store the order for re-order, straight away

  • loopingmurdock Profile Picture
    250 on at

    i tried this but is changes all the base

    ForAll(TEST,UpdateIf([@Bills], Name = Etablishement, {Amount: QTY}))
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Do you have a Header, Detail struture in your orders?

  • loopingmurdock Profile Picture
    250 on at

    no there an id order, the only thing i need to figure out is a way from a click of a button do the some order he/she previously did, after he/she submit it.

  • loopingmurdock Profile Picture
    250 on at

    I store and submit the first order as such

     

     

     

    Collect(TEST, {Name: DataCardValue1.Text, QTY: Value(DataCardValue3.Text) }); SubmitForm(Form1)

     

     

     

    To re do the some order i do this but is changes everything, even items not order from zero to what ever he/she entered

     

     

     

    ForAll(
     TEST,
     UpdateIf(
     [@Bills],
     Name = Etablishement,
     {
     Amount: QTY
     }
     )
    )

     

     

     

    UPDATE

     

    i changed name to eta and it works

    Can someone tell me way?

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

    Hi @loopingmurdock ,

     

    This can be caused by ambiguation. If the table 'TEST' and table 'Bills' have columns with the same name, an error may occur when nested calls.

     

    You could also try this formula:

    ForAll(
     TEST,
     UpdateIf(
     [@Bills] As TableA,
     TEST[@Name] = TableA[@Etablishement],
     {
     Amount: TEST[@QTY]
     }
     )
    )

     

    Best Regards,

    Bof

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard