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

Notifications

Announcements

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

(1) ShareShare
ReportReport
Posted on by
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)
  • chiaraalina Profile Picture
    1,400 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
    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! 
  • Suggested answer
    chiaraalina Profile Picture
    1,400 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
    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? 

  • Verified answer
    chiaraalina Profile Picture
    1,400 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
    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,400 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
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 430

#2
chiaraalina Profile Picture

chiaraalina 130

#3
S-Venkadesh Profile Picture

S-Venkadesh 68 Moderator

Last 30 days Overall leaderboard