Hi @mikekrau Try this code:
If(
CountRows(UserData) = 0,
Patch(
'MyData',
Defaults('MyData'),
{
'Sharepoint User': {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & User().Email,
Department: "",
DisplayName: User().FullName ,
Email: User().Email,
JobTitle: "",
Picture: ""
}
}
)
);
You are missing with '@odata.type' field and IsBlank cannot be used on collection. Instead use CountRows
-----------------------------------------------------------------------------------------------------------------------------
I hope this helps.
Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍
Thanks,
ANB