Goal:
- To update data taken from the DataCardValue in Powerapps inside a Sharepoint List by adding to the concurrent amount.
- Making sure that it is linked to the correct Leave Type and correct Name
Issue:
- I can create a new data but I can't update the current one the person is entitled to.
- I don't know how to make it link so that it captures the person's data correctly in order to update their specific record.
Concurrent Code in Use:
UpdateIf('EMP Leave Quota', DataCardValue15.Selected.Value= "Medical" , {Used:Value(DataCardValue24.Text)});
Old Testing Code (Would prefer to use this instead):
If(
DataCardValue15.Selected.Value= "Medical",
Patch(
'EMP Leave Quota',
{Used:Value(DataCardValue24.Text)}
),
DataCardValue15.Selected.Value= "Maternity",
Patch(
'EMP Leave Quota',
{Used:Value(DataCardValue24.Text)}
),
Patch(
'EMP Leave Quota',
{Used:Value(DataCardValue24.Text)}
)
);
The first one is to update where the 'Leave Type' is equivalent to Medical Leave
Second one is for Maternity, which will be deducted from Maternity Leave
Third one is for the 2 who does not fall under that category that will be deducted from Annual Leave type

Report
All responses (
Answers (