I am using the Office 365 groups connector - When a group member is added or removed. When a member is removed the raw output is as below
{
"@odata.type": "#microsoft.graph.user",
"id": "351f70bc-ce89-457b-97ae-247fe0fb0ec8",
"@removed": {
"reason": "deleted"
}
}
I am trying to write an if statement expression to insert in the body of an email so that if the reason is deleted it inserts the text "Removed". I can not figure out the correct syntax
if(triggerOutputs()?['body/@removed/reason'] = 'deleted','removed',' added')
I am not sure how to refer to the result in the output. Can anybody correct this for me?
Thanks, Steve
------------------------------
Steve Myles
------------------------------