cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
as733y
Helper III
Helper III

Concat and parenthesis?

Does anyone know why parenthesis from a record don't work next to Char(10)? My below code will send the below email.

 

Office365Outlook.SendEmail(varUser.Email, "Stock Needed on " & Dropdown1.Selected.Value, Concat(StockTotal, "Stock Needed: " & Stock & Char(10) & "Stock Type: " & StockType & Char(10) & "Quantity Needed: " & TotalNeeded &Char(10)&Char(10)) &With({Comments: Comment.Text},"Comments: " & Comments)&Char(10)&Char(10)

 

Stock Needed: 7-Up

Stock Type: Beverages

Quantity Needed: 1

 

Stock Needed: Coffee Scoops (1 LG/ 1 SM) Stock Type: Galley Supplies Quantity Needed: 1

 

Stock Needed: Peanuts

Stock Type: Consumables

Quantity Needed: 2

 

Comments:

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @as733y ,

You are sending HTML - try the below

Office365Outlook.SendEmailV2(
   varUser.Email, 
   "Stock Needed on " & Dropdown1.Selected.Value, 
   Concat(
      StockTotal, 
      "Stock Needed: " & Stock & "<br>" & 
      "Stock Type: " & StockType & "<br>" 
      "Quantity Needed: " & TotalNeeded & "<br><br>" &
       "Comments: " & Comment.Text & "<br><br>"
   )
)

 

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.

Visit my blog Practical Power Apps

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @as733y ,

You are sending HTML - try the below

Office365Outlook.SendEmailV2(
   varUser.Email, 
   "Stock Needed on " & Dropdown1.Selected.Value, 
   Concat(
      StockTotal, 
      "Stock Needed: " & Stock & "<br>" & 
      "Stock Type: " & StockType & "<br>" 
      "Quantity Needed: " & TotalNeeded & "<br><br>" &
       "Comments: " & Comment.Text & "<br><br>"
   )
)

 

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.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,933)