Issue Testing “Look up Mailbox” Action in Microsoft Exchange Online Spoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 02:05 AM
Hi everyone,
I’m currently setting up the Microsoft Exchange Online spoke integration on our ServiceNow instance and I’ve run into an issue I’m hoping someone here can help me with.
Here’s what I’ve done so far:
--> Configured OAuth credentials (client ID, tenant ID, secret) for Microsoft Graph.
--> Set up Windows credentials for mailbox actions.
--> Configured connection & credential aliases (Microsoft Exchange Online MID) and ensured they point to the correct MID Server and credentials.
--> MID Server is online and has the EXO V2 PowerShell module installed.
Now, I am trying to test the Look up Mailbox action directly from Flow Designer using the test option (providing just the User ID field, e.g., Adam.Edmondson@xyz.com).
However, I consistently receive the following error in logs:
Failed while executing ExchangeSpoke-GetMailbox.ps1
Invalid parameter
My Questions:
1. Has anyone successfully tested this action without building a full flow?
2. Are there additional parameters I should pass explicitly when using the test option in Flow Designer?
3. Any tips or best practices for testing Exchange Online spoke actions to make sure all necessary values are passed to the PowerShell scripts?
I’ve cross-checked the official integration docs, and everything looks correct on the configuration side, so I’m looking for community insights or similar experiences.
Any help or pointers would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2025 01:01 AM
Hi @Mukul_Kolhe
Try running the powershell scripts manually from the mid server host to verify the connection between your Mid server and EXO application. If it's successfull, then check if the windows credential (Service account) has local admin access on the mid server host to execute the powershell script as local admin.
Please test the above let me know..
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 10:50 PM
Hi @J Siva
Thank you for your response and the suggestion. I will check if it’s feasible to run the PowerShell script manually from the MID Server host to verify the connection with EXO.
Additionally, I had a quick follow-up:
While testing the "Look up Mailbox" action directly from Flow Designer (by just providing the User ID), I consistently receive the “Invalid parameter” error in the logs. I wanted to check:
Are there any additional parameters that need to be passed explicitly to test this action outside of a complete flow?
Is this the recommended way to test such spoke actions, or is there a better approach to ensure all required parameters are passed correctly to the PowerShell script?
Any guidance on this would really help clarify the proper testing strategy.
Thanks again for your support!
Best regards,
Mukul Kolhe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 07:26 AM
I believe you are passing the user email id as an input.
But for some reason I too received a similar error.
So, instead of using oob spoke, I've created custom action to meet the requirements.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 12:44 AM - edited 06-05-2025 05:21 AM
Hi @J Siva
Thank you for your response and the suggestion.