Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data not patching to Desks Reservations List, cannot see any bookings #127

Open
ZainMick opened this issue Dec 2, 2023 · 3 comments
Open

Comments

@ZainMick
Copy link

ZainMick commented Dec 2, 2023

Hi Guys

Sorry im new to this,

Not sure why i cannot get the data to patch into the Desk Reservations list, also cannot see any bookings made.

The list names and columns are correct, everything looks as it should, the Desks list and DeskAdmins list are working fine.

The Desk Reservations list is not getting any data from the LOOKS GOOD! button, no errors on the button, any ideas ?

ForAll(
selectedDesks,
Patch(
'Desk Reservations',
Defaults('Desk Reservations'),
{
Title: selectedPerson.DisplayName & " " & ThisRecord.Title,
DeskText: ThisRecord.Title,
'Check Out From': DateAdd(startTime, /TimeZoneOffset(),/ TimeUnit.Minutes ),
'Check Out From Text': startTime,
'Check Out From Number':Value(Text(startTime,"yyyymmddhmm")),
'Check Out To': DateAdd(endTime, /TimeZoneOffset(),/ TimeUnit.Minutes ),
'Check Out To Text': endTime,
'Check Out To Number': Value(Text(endTime,"yyyymmddhmm")),
'Reserved By': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & selectedPerson.Mail,
Department: "",
DisplayName: selectedPerson.DisplayName,
Email: selectedPerson.Mail,
JobTitle: "",
Picture: ""
}
}
)
);
Concurrent(
Reset(ddTimeTo),
Reset(ddTimeFrom),
Reset(Calendar_1),
Clear(selectedDesks),
Set(
selectedDate,
Blank()
),
Set(
startTime,
Today()
),
Set(
endTime,
Today()
)
);

Navigate(Success)

@ZainMick
Copy link
Author

ZainMick commented Dec 4, 2023

Patch function is working now, i just cant see any of my bookings in the app, any thoughts ?

@christheninjapirate
Copy link

I think I may have addressed that problem in my guide - certainly sounds familiar: #114 (comment)

@raj1882
Copy link

raj1882 commented Mar 13, 2024

Hi
How did you fix the Patch function, I am getting the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants