Photo yesteryear Olu Eletu at Unsplash.
This is a brusque ane in addition to quite easy. When yous exercise an detail inwards SharePoint the unique identifier for a someone champaign is the claim, land the Get Manager activeness takes a UPN (user prinipcal name).
For Office 365 they are close equal. The claim is genuinely the UPN + a claim prefix.
UPN: john@contoso.com
Claim: i:0#.f|membership|john@contoso.com
If yous get got a catamenia triggering on a SharePoint list, yous would larn inwards the next aspect for the UPN champaign to strip off the prefix from the claim.
replace(triggerBody()?['Editor']?['Claims'],'i:0#.f|membership|','')
Sure yous tin run the email address which normally fit the UPN, simply yous would survive surprised how oftentimes multiple accounts get got the same email address - admin accounts, exam accounts etc. So using a unique identifier is e'er a amend approach compared to the email address.
Thanks for reading : How To Properly Role The “Get Manager” Catamenia Activity Amongst A Sharepoint List