I'm working on this project but after fixing all the errors. I seem to stumble upon a problem where the data shows on my end and my co-owners end but not to anyone other than the 3 of us. I checked the permissions in Sharepoint and for testing purposes, I allowed others to edit the list but the problem still persist. They are not even allowed to update the data inside through the apps. Below are the screenshot of the page where the data is missing.
OnSuccess
With({LeaveDataforUser:
LookUp('EMP Leave Quota',
Name.DisplayName=varUserName &&
'Leave Type'=Switch(DataCardValue15.Selected.Value,
"Medical","Medical Leave",
"Maternity","Maternity Leave",
"Additional Annual Leave", "Additional Leave",
"Carry Forward Leave", "Carry Forward Leave",
"Annual Leave")
),
AddDays:Value(DataCardValue24.Text)},
Patch('EMP Leave Quota',
LeaveDataforUser,
{Used:LeaveDataforUser.Used + AddDays}
)
);
Patch(
eLeaveApp,
{ID:Self.LastSubmit.ID},
Form4_1.Updates,
Form2.Updates,
Form4.Updates,
{DateApply: Now()}
);
Navigate(Review);
ResetForm(Form3);
ResetForm(Form2);
ResetForm(Form4_1);
ResetForm(Form4);
UpdateContext({showAlert:false})
Data Capture from List
With(
{
eLeave:
Filter(
'EMP Leave Quota',
'Leave Type' = "Carry Forward Leave"
)
},
LookUp(
eLeave,
Lower(Name.DisplayName) = varUserName
).Entitlement
)