Hi All,
I am struggling with the issue below:
On my app i want an input box of type "Number" that a user can input to. when the form is submitted it will enter the number into the user who is logged in "Days Remaining" field in a SharePoint list, however i want it to subtract the days entered from the number that is currently stored in the SharePoint table.
User | Entitlement | Days Remaining |
user1 | 30 | 26 |
I hope that this makes sense but i am struggling to work out how to do this.
Thanks in advance.
Jake
Solved! Go to Solution.
Hi @jakebroom ,
Do you want to update an existing record?
Could you tell me the user field data type and what is your data source?
I assume that user field is person field.
If so, you could try this formula to update with the number in the input box:
Patch(table name,Lookup(table name, User.Email=User().Email),{Days Remaining:Days Remaining-Value(input box.Text)})
Best regards,
Hi @jakebroom ,
I will call the Text box DaysText
On the Update property of the card, change DaysRemaining.Value (or whatever it is) to
If(
!isBlank(DaysText),
DaysRemaining.Value - Value(DaysText.Text),
DaysRemaining.Value
)
This should subtract any days in the box from the value currently displayed in the card.
If this post helps, then please consider Accept it as the solution to help the other members find it more. It also closes the item.
Hi @jakebroom ,
Do you want to update an existing record?
Could you tell me the user field data type and what is your data source?
I assume that user field is person field.
If so, you could try this formula to update with the number in the input box:
Patch(table name,Lookup(table name, User.Email=User().Email),{Days Remaining:Days Remaining-Value(input box.Text)})
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
187 | |
82 | |
50 | |
37 |
User | Count |
---|---|
288 | |
242 | |
123 | |
75 | |
56 |