web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Using Contact Owner Personalization in from email field and consideration for out of office

(3) ShareShare
ReportReport
Posted on by 166
We are doing some A/B testing where half of the contacts in the journey receive the email from our primary sending email address and the other half receive the email from the contact owner using personalization for email from and from name. I'm looking for a way to check if the contact owner has their out of office turned on. At the very least, it would be awkward if the contact replied to the email and received an out of office message.   
I found this for power automate, but I don't think Dynamics can access that type of Outlook information, How to check if user is Out Of Office before sending email – Power Automate – Power Platform Learning.
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
    Checking Out-of-Office (OOO) Status Before Sending Emails in Dynamics 365 

    Problem: 
    You want to avoid sending emails from a contact owner if they’re on OOO (to prevent awkward auto-replies). 

    Limitations: 
    - Dynamics 365 cannot directly check a user’s Outlook OOO status. 
    - Microsoft Graph API can retrieve OOO status, but requires setup. 

    Solutions 
     1. Use Microsoft Graph API (Recommended if Possible) 
    How it Works: 
       - Before sending, call Graph API (`/users/{id}/mailboxSettings/automaticRepliesSetting`) to check OOO status. 
       - Requires: 
         - Azure App Registration (API permissions: `MailboxSettings.Read`). 
         - Power Automate or custom plugin to query before sending. 

    Steps: 
       1. Register an Azure AD App (if not already done). 
       2. Grant API permissions (`MailboxSettings.Read`). 
       3. Use Power Automate HTTP action to call: 
          GET https://graph.microsoft.com/v1.0/users/{owner_email}/mailboxSettings/automaticRepliesSetting
       4. Check `status` in response (`"disabled"` = not OOO, `"enabled"` = OOO). 
       5. If OOO, fall back to the default sending address. 

     2. Manual Workaround (No API Access) 
     Create a Custom "OOO Status" Field 
       - Add a Yes/No field on the User entity (`systemuser`). 
       - Instruct users to toggle this before going OOO. 
       - Use a branch condition in the Customer Journey: 
         - If `Owner.OOO_Status = Yes` → Use default email. 
         - Else → Use owner’s email. 

     3. Scheduled Power Automate Flow (Periodic Sync) 
    Sync OOO Status Daily 
       - Run a scheduled flow to check all users’ OOO status via Graph API. 
       - Update their D365 user record (custom field) accordingly. 

     
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at
    Hello mcrthomas,
     

    You've identified a key challenge with personalizing the "From" address to the Contact Owner: the potential for awkward out-of-office (OOF) replies. Unfortunately, your assessment is correct: Dynamics 365 Customer Insights - Journeys (and the underlying Dataverse) does not have direct, real-time access to a user's Outlook out-of-office status.

    The information about a user's OOF settings is typically managed within their Exchange mailbox and isn't readily exposed as a field you can directly query within Dynamics 365 for use in journey logic or email personalization.

    Why Dynamics 365 Can't Directly Access OOF:

    • Privacy and Security: Exposing users' real-time availability status could have privacy implications.

    • Architectural Differences: Dynamics 365 and Exchange Online are separate services with different data models. While they integrate, real-time presence and OOF status aren't synchronized as readily accessible fields.

    • Performance Considerations: Constantly checking the OOF status of potentially thousands of contact owners before sending emails could introduce significant performance overhead.


    •  

    Workarounds and Considerations (Since Direct Access Isn't Possible):

    Given the limitations, here are some alternative approaches and considerations for your A/B testing:

    1. Accept the Risk and Monitor:

      • Acknowledge the Possibility: Understand that some recipients might receive an email appearing to be from their contact owner and then get an OOF reply.

      • Monitor Feedback: Keep an eye on any feedback or complaints you receive regarding OOF replies.

      • A/B Test Impact: Factor this potential awkwardness into your analysis of the A/B test results. If the personalized "From" address significantly improves engagement despite some OOF replies, it might still be a worthwhile strategy.

      •  

    2. Implement a Delay and Check Activity (Less Reliable for Real-Time OOF):

      • Introduce a Delay: Before sending the personalized "From" email, you could introduce a short delay in your journey.

      • Check Recent Activity: After the delay, you could check if the Contact Owner has had any recent activity in Dynamics 365 (e.g., logged an activity, updated a record). Inactivity might suggest they are away, but it's not a reliable indicator of OOF. This approach is complex to implement and not very accurate for real-time OOF.

      •  

    3. Provide Clear Instructions and Manage Expectations:

      • Internal Communication: Ensure your sales team understands that emails might be sent "from them" as part of the A/B test.

      • Potential Disclaimer (Use Sparingly): You could consider adding a small, subtle disclaimer in the email footer (for the personalized "From" variant) stating something like, "This email was sent on behalf of your contact at [Your Company]." However, this can detract from the personalization.

      •  

    4. Focus on the "From Name" Personalization:

      • Instead of personalizing the actual "From" email address, consider only personalizing the "From Name" field. You can still use your primary sending email address but display the Contact Owner's name. This provides a personal touch without the risk of OOF replies to individual inboxes.

      • Example:

        • From Email: marketing@yourcompany.com

        • From Name: {{Contact.OwnerFullName}} 
         

    5. Segment Based on Contact Owner Activity (Historical Data):

       

      • You could try to segment your contacts based on the historical activity of their owners. For example, avoid sending the personalized "From" email to contacts whose owners haven't had any activity in Dynamics 365 for a significant period. This is a rough proxy and doesn't reflect real-time OOF.

    6. Consider Dedicated "Personalized Sending" Mailboxes:

      • For a more complex setup, you could potentially create dedicated mailboxes that are associated with specific teams or a group of users who are more consistently available. You could then personalize the "From" address to these monitored mailboxes. This adds significant overhead and management.


      •  

    7.  

    Why the Power Automate Solution Doesn't Apply Directly:

    The Power Automate solution you found relies on specific Outlook connectors and actions that are available within the Power Automate context, where you are directly interacting with user mailboxes (with appropriate permissions). Dynamics 365 email sending is a different process that operates at the application level and doesn't have the same direct access to individual user's Exchange settings.

    Recommendation for Your A/B Test:

    Given the limitations, the most practical approach for your A/B test is likely to:

    • Proceed with the "From Email" and "From Name" personalization to the Contact Owner.

    • Acknowledge the potential for OOF replies.

    • Carefully monitor the results of your A/B test, including any feedback related to OOF.

    • Consider a secondary A/B test where you only personalize the "From Name" to see if you achieve similar engagement without the OOF risk.

    •  

    While the ideal solution of checking OOF status isn't directly available in Dynamics 365 for email sending, understanding the limitations and considering these workarounds will help you make informed decisions about your A/B testing strategy.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans