Hello @Pragiri,
To access the category assigned to an email in the shared mailbox using logic app, check the below:
Create a Microsoft Entra ID application and grant below application type API permissions:
To fetch the masterCategories
of Shared mailbox generate the access token using client credential flow:
POST https://login.microsoftonline.com/TenantID/oauth2/v2.0/token
grant_type=client_credentials
&client_id=ClientID
&client_secret=Secret
&scope=https://graph.microsoft.com/.default
Pass the Headers as Content-Type : application/x-www-form-urlencoded
Generated access token:
Now use the below API to fetch the masterCategories
of Shared mailbox like below:
https://graph.microsoft.com/v1.0/users/******@xxx.onmicrosoft.com/outlook/masterCategories
And pass Headers as Authorization : Bearer access_token
-
access_token
value istriggerBody()['access_token
]
When I run the workflow, successfully got the response:
Reference:
API Graph find the categories of an outlook email in a shared mailbox - Microsoft Q&A
Hope this clarifies things!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful, which may help members with similar questions.
If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.