Here, [client_id] is your Azure AD application’s client ID, and [client_secret] is your Azure AD application’s client secret. [tenant_id] is your Azure AD tenant ID.
2. Add a “Deserialize JSON” activity after the “HTTP Request” activity to parse the response into a structured format.
3. In the “Input” property of the “Deserialize JSON” activity, enter the following expression: responseContent.ToString()
4. In the “TypeArgument” property of the “Deserialize JSON” activity, enter the following: System.Collections.Generic.Dictionary(Of String, Object)
5. You can now access the access token by using the expression jsonDict("access_token").ToString(). Save this value to a variable for later use.
6. Use the access token obtained to make requests to the Outlook Graph API,
After getting the access token follow these below steps
Set the following properties for the “HTTP Request” activity:
Key: Content-Type Value: application/jsonHere, [access_token] is the access token obtained by authenticating with the Azure AD application.
Add a “Deserialize JSON” activity after the “HTTP Request” activity to parse the response into a structured format.
In the “Input” property of the “Deserialize JSON” activity, enter the following expression: responseContent.ToString()
In the “TypeArgument” property of the “Deserialize JSON” activity, enter the following: System.Collections.Generic.List(Of Object)
After the “Deserialize JSON” activity, add a “For Each” activity to loop through the list of messages.
In the “Values” property of the “For Each” activity, enter the following expression: jsonListHere, jsonList is the variable containing the list of messages returned by the “Deserialize JSON” activity.
Inside the “For Each” activity, you can access the properties of each message using expressions like item("subject").ToString() or item("body")("content").ToString().