Inside flow designer, how to set parameters in Exchange spoke action: Create Mailbox?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 12:43 AM
Hello,
Got a task to fetch extra information from Exchange inside flow designer besides what it already fetches via Create Mailbox action.
In my case, I would like to get the Retention Policy that is a applied to an user in Exchange.
I read the documentation regarding the Create Mailbox action and saw that you can send a parameters and it should get the value of that parameter, but tried it different approaches and every time I get the error: "Provided Parameter name is invalid."
Any idea how to pass the JSON inside the parameters to retrieve info from Exchange?
Thank you,
Elena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 01:13 AM
Hello @Elena Pomana ,
Did you try passing it via script in the parameters field with below format ?
return {"paramter_1_name" : "parameter_1_value" ,"paramter_2_name" : "parameter_2_value"};
Click on the symbol which is on the left to the picker in the parameters field to write the scirpt
Hope this helps
mark my answer correct if this helps you
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 01:30 AM
Hello!
I'll try via script as well based on what you've provided but shouldn't it work in this format?
{"RetentionPolicy": ""}
I don't know what to pass in the "parameter_1_value"
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 04:31 AM
I need to fetch the value of that parameter from Exchange...that's why I'm asking.
Tried several methods and still nothing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 06:11 AM
Hi Elena,
Did you get answer to apply Retention policy in mailbox.? We are also facing the same issue.