Hi everybody. I'm a first timer doing this thing. Everything is new to me and I'm looking forward to learn from you guys.
I just copied the formula from the tutorial i watched in Youtube. I have copied everything but it gives me errors. I'm so confused because it works well in the tutorial I've watched. What could be the possible mistakes of this?
It says the following:
-The function 'Patch' has some invalid arguments
- Invalid argument type. Expecting a record value, but of a different schema
- "Missing column. Your formula is missing a column 'JobTitle' with a type of 'Text
below is the Formula:
Patch('Employee Request Details', Defaults('Employee Request Details'),
{LeaveType:Gallery4.Selected.LeaveType1},
{LeaveStartDate:StartDate.SelectedDate},
{LeaveEndtDate:EndDate.SelectedDate},
{LeaveDescription: txtLeaveDescription.Text},
{ 'Requested by':
{'@odata.type' : "#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
DisplayName: User().FullName,
Email: User().Email,
Jobtitle: ".",
Picture: "."}},
{'Approved By':
{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExapandedUser",
Claims: "i:0#.f|membership|" & Lower(_selectedApprover.Mail),
Department: "",
DisplayName: _selectedApprover.DisplayName,
Email: _selectedApprover.Mail,
Jobtitle: ".",
Picture: "."}})