cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
topness
Level: Powered On

Get mail tips for a mailbox (V2) - action not returning automaticReplies

I'm using "Get mail tips for a mailbox (V2)" in an attempt to determine if a user has their Outlook 365 Automatic Replies turned on by checking if the "Automatic replies message" property is empty.

 

When I use the "Automatic replies message" property from Dynamic Content, it yields: body('Get_mail_tips_for_a_mailbox_(V2)')?['automaticReplies']?['message']

 

flow1.png

 

For me this is evaluating to null/empty, even when Automatic replies are turned on.

 

When I remove the ? operators in this statement, i.e: body('Get_mail_tips_for_a_mailbox_(V2)')['automaticReplies']['message'], it yields this:

flow2.png

Looking at the JSON returned for the Get Mail Tips V2:

{

  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.mailTips)",

  "value": [

    {

      "mailboxFull": false,

      "externalMemberCount": 0,

      "totalMemberCount": 1,

      "deliveryRestricted": false,

      "isModerated": false,

      "maxMessageSize": 37748736,

      "emailAddress": {

        "name": "",

        "address": "admin@topness.onmicrosoft.com"

      },

      "automaticReplies": {

        "message": "<div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div></div>\r\n<div>Gone!</div>\r\n<div></div>\r\n</div>",

        "messageLanguage": {

          "locale": "en-US",

          "displayName": "English (United States)"

        }

      }

    }

  ]

}

 

Here it appears the base object, value, is an array, to get at the automaticReplies object, I have to use the expression:  body('Get_mail_tips_for_a_mailbox_(V2)')['value'][0]['automaticReplies']

 

Is this a bug or am I using it wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Get mail tips for a mailbox (V2) - action not returning automaticReplies

Hi @topness ,

 

I have made a test on my side and the issue is confirmed on my side.

The expression for the Automatic replies message dynamic content should be :

body('Get_mail_tips_for_a_mailbox_(V2)')['value'][0]['automaticReplies']?['message']

However, the expression for the Automatic replies message dynamic content is wrong as below:

body('Get_mail_tips_for_a_mailbox_(V2)')?['automaticReplies']?['message']

I would post this issue to my product team, if the issue is solved, I will reply here.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 REPLIES 2
Community Support Team
Community Support Team

Re: Get mail tips for a mailbox (V2) - action not returning automaticReplies

Hi @topness ,

 

I have made a test on my side and the issue is confirmed on my side.

The expression for the Automatic replies message dynamic content should be :

body('Get_mail_tips_for_a_mailbox_(V2)')['value'][0]['automaticReplies']?['message']

However, the expression for the Automatic replies message dynamic content is wrong as below:

body('Get_mail_tips_for_a_mailbox_(V2)')?['automaticReplies']?['message']

I would post this issue to my product team, if the issue is solved, I will reply here.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PeterKuehlian
Level: Powered On

Re: Get mail tips for a mailbox (V2) - action not returning automaticReplies

Hi Alice

 

I am facing the same problem. 

 

Is there any update available on this topic?

 

BR

Peter

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 364 members 4,711 guests
Please welcome our newest community members: