aprildunnam / PowerApps

Collection of Power Apps template apps, components and examples
Other
428 stars 229 forks source link

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

Open ZainMick opened 11 months ago

ZainMick commented 11 months ago

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 commented 10 months ago

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

christheninjapirate commented 8 months ago

I think I may have addressed that problem in my guide - certainly sounds familiar: https://github.com/aprildunnam/PowerApps/issues/114#issuecomment-1777011587

raj1882 commented 7 months ago

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