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 Apps
Answered

Value update

(0) ShareShare
ReportReport
Posted on by 48

Hi

I'm creating an App for updating a SP list with Sales order information. And just got one last hurdle.

When a line is sent to SP by clicking Send button, I clear some of the fields like Material number and Qty, - and then I wan't my Order Item number to increase by 10

I have added for the Button in OnSelect in the end a Value, - an it is working, - meaning it does calculate my previous value by adding 10, - but it is not updating the field in the app. So next time I press Send it again sends 10. (see attachment)

What should I do to change that value in the Order Item field in the APP?

 

Br Anders

 

 

 

image.png
Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi! 

    I am not sure what is the OrdItem if it is a variable in Power Apps maybe you could update its value

    Set(ordItem;ordItem+10);

    If it's a variable that is dependent from a value on SP. After submitting maybe force the refresh on the SP list.

  • ABJ1s1 Profile Picture
    48 on at

    Thanks Jose for a quick reply.

     

    My OrdItem field is a Text Input field in the app.

    And when adding the Set(OrdItem,OrdItem+10) I get 3 flow errors. 2 that are the same issue?

     

    If I have the Value(OrdItem+10) There is no issues

     

    image.png
    image.png
  • WarrenBelz Profile Picture
    156,327 Most Valuable Professional on at

    Hi @ABJ1s1 ,

    What exactly are you trying to do here? Assuming OrdItem is a Text control, then 

    Value(OrdItem) + 10

    will add 10 to its Value. The Set() command sets a Variable - you cannot set a control value with it. If OrdItem is a field, is it Numeric or Text? Are you trying write the value to your list?

  • ABJ1s1 Profile Picture
    48 on at

    Hi WarrenBelz

    Yes, - my OrdItem is a Text Input field in the App and Format is set to Numbers

    When adding your string above I need to add extra brackets to avoid errors,  - so it looks like this: Value((OrdItem) + 10)

    And it is calculation correctly, - but does not update the field in the app. It stayes at 10.

    I do send the value from the field to my sharepoint list. And the Idea here is when I create another line in the SP for the same Customer it should get Order Item number 20, 30... etc. I have an unique Identification column in the SP list that will be the same as long as my new entry is done on the same date and with the same customer (ddmmyyyy_[Customerno])

     

  • ABJ1s1 Profile Picture
    48 on at

    I ended up creating Variable with SET function. 

    So it's is working now.

    Thanks for the help. 

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard