Use Flow designer to add/remove users from a Microsoft Exchange Distribution List

David Trotta
Tera Contributor

Hi Developer Community,

 

Does anyone have any experience building a flow in Flow designer to add/remove users from a Microsoft Exchange Distribution List in a cloud environment?  My flow is using the Microsoft Entra spoke and Look up User and Azure AD Connection (Use Default Connection) as the Action Properties.  Then, I'm using the User Principal Name (UPN) as the action input, plus the unique Object ID (Group ID) of the Exchange DL, but it is not working.

 

I am currently getting the below runtime value under the Output Data when looking at the Execution Details in Flow Designer.


"Action Status": {
"code": 1,
"message": "Error: Unknown Error (Process Automation.bc3088ea0bd4a110cfed40976877b252; line 6)"

 

Any thoughts?

1 REPLY 1

Viraj Hudlikar
Tera Sage

Hello @David Trotta 

The error "Error: Unknown Error" with code 1 often indicates a permissions issue for the Azure AD application used by the spoke or an incorrect or missing input format for the User Principal Name (UPN) or Group ID. Double-check the API permissions in Azure and the connection alias setup, and ensure the group ID is the correct object ID (GUID).

 

If my response has helped you, hit the helpful button, and if your concern is solved, do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.