Set(
varRecord,
EditForm1.LastSubmit
);
Navigate(
BrowseScreen1,
Fade
);
Notify(
"Thank you for submitting this form. It has been sent to approvers for review.",
NotificationType.Success
);
If(
varRecord.FormStatus = "New",
Patch(
'Promo Approvals',
Defaults('Promo Approvals'),
{
Title: adCouncilPicker.Selected.DisplayName,
Approver: {
Claims: adCouncilPicker.Selected.Claims,
DisplayName: adCouncilPicker.Selected.DisplayName,
Email: adCouncilPicker.Selected.Email,
Department: "",
JobTitle: "",
Picture: ""
}, Parent_Lookup: {ID: Value(varRecord.ID), Value: varRecord.ID}, Parent_ID: Value(varRecord.ID)}
}
)
);
^^^ the Parent_Lookup line of code (4th from the bottom) is what throws the error.