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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot Studio - Outlo...
Copilot Studio
Answered

Copilot Studio - Outlook Connector

(2) ShareShare
ReportReport
Posted on by Microsoft Employee
Hi! Has anyone successfully set up an agent using the Outlook connector tool? Running into an issue with the “Send an email (v2)” action: specifically, I can’t get the email body to format with proper line breaks. Any tips or a point of contact would be super helpful - have been struggling with this for weeks! 
I have the same question (0)
  • Verified answer
    chiaraalina Profile Picture
    1,586 Super User 2026 Season 1 on at
    Hi @AT-12011746-0

    Have you already tried with HTML?
    Example 
    Hello <br><br> This is line one.<br> This is line two.<br><br> Regards<br> Your Name
     
    Translates to
     
    Hello

    This is line one.
    This is line two.

    Regards
    Your Name
     
  • AT-12011746-0 Profile Picture
    Microsoft Employee on at
    Thanks @chiaraalina! The solution was just to type <br> directly into the chatbox with the agent, since I was saving the user response in the chat window to become the email body.

    I'm curious if you know of any ways to pre-fill the email body to send out and add the user response in the middle. For example, I want to send out an email response that has the same intro paragraph across all emails, with the middle paragraph being the specific user response entered in the chat window, and ending with the same conclusion paragraph across all emails. However, the body I can add to the Outlook connector email can only be one variable (doesn't allow free typing) 


     
    and when I try to set a variable value in the variable management options, it doesn't allow free typing either. 


    Any tips would be great! 
  • Verified answer
    chiaraalina Profile Picture
    1,586 Super User 2026 Season 1 on at
     
    Yes, it is possible. . The Body field in Send an email (V2) only accepts one value, so you can’t type text and insert a variable directly. The easiest way is to use PowerFx.
     
    Add Ask a question and save the answer to a variable, example userResponse.
     
    Build the email body with Power Fx
     
    "<p>Hello</p><p>" &
    Topic.userResponse &
    "</p><p>Thanks,<br>Your Name</p>"
     
     
     
    Let me know if it helped!
  • AT-12011746-0 Profile Picture
    Microsoft Employee on at
    Dear @chiaraalina,

    Thank you so much for your help - both of your answers worked! I'm running into one last formatting error, if you have any guidance on this. 

    I currently have a variable set, titled suggestedCat1, that I made into a global variable. I'm trying to populate the adaptive card's field for Category 1 (you can see the card format on the right hand side in the agent chat box) with suggestedCat1's value. I did print it beforehand to make sure that the variable has the correct value stored. I've tried all of Copilot's recommended solutions but it still draws a blank in the adaptive card. It believes that as long as the name matches, the variable value should have been added into the card. Would you have any insight into this? 

  • Suggested answer
    chiaraalina Profile Picture
    1,586 Super User 2026 Season 1 on at
     
    Great! 
     
    Try to set the input’s value using the variable (no quotes). And use Global.
    Example:
    {
      type: "AdaptiveCard",
      version: "1.5",
      body: [
        {
          type: "Input.Text",
          id: "Category1",
          value: Global.suggestedCat1
        }
      ],
      actions: [
        { type: "Action.Submit", title: "Confirm" }
      ]
    }
     
    That should work!
  • AT-12011746-0 Profile Picture
    Microsoft Employee on at
    Thanks @chiaraalina for your suggestion! Unfortunately when I try to use Global and not include quotations, clicking "save" automatically resolves it back to the "{$suggestedCat1}" format so I'm assuming that it's causing an error. Is there any other recommendation to approach this? Thank you for all of your help - feeling so close! 
  • chiaraalina Profile Picture
    1,586 Super User 2026 Season 1 on at
    Hi
     
    Please switch to Formular card. There you can use dynamic values.
     
     
    Let me know if this solution works for you!
  • AT-12011746-0 Profile Picture
    Microsoft Employee on at
     @chiaraalina Does outlook send email V2 not allow us to send emails to recipients outside of Microsoft? Reaching out to Msft support only led me to this post: Send an email (V2) action not triggered in Copilot Mail Agent - Microsoft Q&A and there were no verified answers. Any help or point of contact here would be appreciated! 
  • chiaraalina Profile Picture
    1,586 Super User 2026 Season 1 on at
    Hi 
     
    What connection account is the email step using?
    Can you share some infornation/screenshots?
     
    Thanks!
  • AT-12011746-0 Profile Picture
    Microsoft Employee on at
    Dear @chiaraalina,

    I am using my work email for the connection and taking the user email that was saved into a variable named Global.userEmail. Since we store the email in a text block with other fields, I had created a custom prompt that would pull out the email from the block to use for the email sendout. I've attached a screenshot below - thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 297

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
Arild Aarnes Profile Picture

Arild Aarnes 51 Super User 2026 Season 1

Last 30 days Overall leaderboard