Patch(
'PMOProjectIntake',
Defaults('PMOProjectIntake'),
{
Title: txtProjectName.Value,
Organization: {'Value/Justification': cmbOrg.Selected.Value},
'Primary Team': {'Value/Justification': cmbPT.Selected.Value},
'Additional Team': cmbOT.SelectedItems,
ProjectType: {'Value/Justification': cmbType.Selected.Value},
Area: {'Value/Justification': drpArea.Selected.Value},
Description: txtDescription.Value,
'Value/Justification': txtValue.Value,
Assignee: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & cmbAssignee.Selected.UserPrincipalName,
Department: "",
DisplayName: cmbAssignee.Selected.DisplayName,
Email: cmbAssignee.Selected.Mail,
JobTitle: "",
Picture: ""
},
'BG/OpsChampion': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & cmbChamp.Selected.UserPrincipalName,
Department: "",
DisplayName: cmbChamp.Selected.DisplayName,
Email: cmbChamp.Selected.Mail,
JobTitle: "",
Picture: ""
}
},frmAttachment.Updates
);
Concurrent(
Reset(txtProjectName),
Reset(cmbOrg),
Reset(cmbPT),
Reset(drpArea),
Reset(txtDescription),
Reset(txtValue),
Reset(cmbOT),
Reset(cmbAssignee),
Reset(cmbType),
Reset(cmbChamp),
ResetForm(frmAttachment)
);
Notify("Submission Success!",NotificationType.Success)