cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Failed outlook lines

Trying to add a line in an email output 

 

I've tried both Char(10) and Char(13) which the code accepts with no error but it doesn't actually add the lines in the email body. I tried swapping for <br/> and receive the error "Expected operator. We expect an operator such as +,*,or & at this point in the formula. 

Working base formula: FYI "comment" is the name of a text box so the body inputs whatever was typed in this field 

Microsoft365Outlook.SendEmailV2(User_Nominator, "KudoTest", "Hello," & Comment); 

Char(10) code - does not add lines in body

Microsoft365Outlook.SendEmailV2(User_Nominator, "KudoTest", "Hello," & Char(10) & Comment);

<br/> code - receiving error 

Microsoft365Outlook.SendEmailV2(User_Nominator, "KudoTest", "Hello," & <br/> & Comment); 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Failed outlook lines

UPDATE!!! 

 

I got some of it working yay. I tried putting "" around <br> and it worked. My updated code is now:

 

Microsoft365Outlook.SendEmailV2(IECtech, "KudoTest", "Hello," & "<br>" & "<br>" & "Youre Employee has received an accolade from our Client. Please See comment below" & "<br>" & "<br>" & Comment, {Cc:User_Nominator});
Navigate('Confirmation Page')

 

My output is exactly what I needed. 

Hello,

 

Your employee has received an accolade from our client. Please see below.

 

comment text here

View solution in original post

7 REPLIES 7
Highlighted
Super User III
Super User III

Re: Failed outlook lines

Hi @Kathobson ,

Microsoft365Outlook.SendEmailV2(
   User_Nominator, 
   "KudoTest", 
   "Hello <br>" & Comment
);

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Microsoft
Microsoft

Re: Failed outlook lines

That did not work either. Here's how I put it in, I tried 2 ways but both returned the same error as in the OP. 

 

Microsoft365Outlook.SendEmailV2(IECtech, "KudoTest", "Hello," & <br> & Comment)

Microsoft365Outlook.SendEmailV2(IECtech, "KudoTest", "Hello," <br> & Comment)

 

Highlighted
Super User III
Super User III

Re: Failed outlook lines

Hi @Kathobson ,

There is something else wrong here - using my posted syntax, I got this

EMailBreak.jpg

Is Comment a field or control name. If a control, it should be Comment.Text

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Super User III
Super User III

Re: Failed outlook lines

Hi @Kathobson ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Microsoft
Microsoft

Re: Failed outlook lines

Hello, apologies for the late response. Work picked up fast with some urgent requests that pulled me away from this for a while. I'm new to PA so I'm not really savvy on the terminology but I inserted the "comment" as a text input so I think "field" is the correct answer to that. Attached is a list of everything used in the form.  I attached a photo showing all items used in my form and an explanation of each. 

Highlighted
Microsoft
Microsoft

Re: Failed outlook lines

UPDATE!!! 

 

I got some of it working yay. I tried putting "" around <br> and it worked. My updated code is now:

 

Microsoft365Outlook.SendEmailV2(IECtech, "KudoTest", "Hello," & "<br>" & "<br>" & "Youre Employee has received an accolade from our Client. Please See comment below" & "<br>" & "<br>" & Comment, {Cc:User_Nominator});
Navigate('Confirmation Page')

 

My output is exactly what I needed. 

Hello,

 

Your employee has received an accolade from our client. Please see below.

 

comment text here

View solution in original post

Highlighted
Super User III
Super User III

Re: Failed outlook lines

Thanks @Kathobson ,

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,566)