Skip to main content

Notifications

Copilot Studio - General
Suggested answer

Just starting using this - Need help with adding line breaks to Body (String) for Connector action

Posted on 19 Nov 2024 15:50:31 by 353
Hello,
 
I am just starting my journey with CoPilot Studios and am looking for a bit of assistance with the Connector action "Send an email notification (V3)". I have a small setup where someone can ask questions or do a "contact us" and it opens a form with 3 fields (name, phone, selection). When they click submit, it moves to a connector action with inputs for the To field, Subject (string), and Body (String). Currently, I have this formula set for Body (String):
 
"Name: " & Topic.name  & "Phone: " & Topic.phone &  "Selection: " & Topic.selection
 
The email notification shows as:
 
Name: Test1 Phone: 12345679 Selection: volunteering
 
 
How do I add line breaks so that the information doesn't all show as one line and would instead look more like this:
 

Name: Test1
 
Phone: 12345679
 
Selection: volunteering
Categories:
  • Thor_PPC Profile Picture
    Thor_PPC 353 on 26 Nov 2024 at 13:44:55
    Just starting using this - Need help with adding line breaks to Body (String) for Connector action
    Hello Artur,
     
    I have tried Char(10) and it doesn't actually inject a line break for some reason.
  • Suggested answer
    Artur Stepniak Profile Picture
    Artur Stepniak 2 on 26 Nov 2024 at 10:20:12
    Just starting using this - Need help with adding line breaks to Body (String) for Connector action
    Hello,
     
    you can try to separate each string with Char(10) function. It should inject the newline between those.
     
    In case of any other questions, let me know. If the answer is correct, mark it as a solution, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard