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

How to add format to an email

Hi, 
I'm creating and an alert thta will show some fields that has been modified 

what can i do to add format(bolds, enter space):

I want that the email looks like this

Subject: Ticket de Edicion
Body: Se requiere editar los siguientes campos.
Turno cambiar por "   "

Dia/Noche cambiar por "   "

Linea cambiar por "   "

Operacion cambiar por "   "

ENN cambiar por "   "

Activo cambiar por "   "

Tipo de Falla cambiar por "   "

Responsable cambiar por "   "

PPS cambiar por "   "

 

This is the formula that i use

 

 

Office365Outlook.SendEmailV2(
"jose.pena04@metalsa.com",
"Ticket de Edicion",
"Se requiere editar los siguientes campos.
Tecnico cambiar por " & TextInput6_7.Text & " . . " & " Turno cambiar a " & TextInput6_4.Text & " . . " & " Dia/Noche cambiar a " & TextInput6_5.Text & " . . " & " Linea cambiar a " & TextInput6_6.Text & " . . " & " ENN cambiar a " & TextInput6_8.Text & " . . " & " Operacion cambiar a " & TextInput6_9.Text & " . . " & " Activo cambiar a " & TextInput6_10.Text & " . . " & " Tipo de Falla cambiar a " & TextInput6_11.Text & " . . " & " Responsable cambiar a " & TextInput6_16.Text & " . . " & " PPS cambiar a " & TextInput6_12.Text & " . . " & " Not Listed cambiar a " & TextInput6_13.Text,
{Importance: "High"}
);
PowerAppsNotification.SendPushNotification(
{
recipients: ["jose.pena04@metalsa.com"],
message: "El usuario " & User().Email & " solcita editar un registro de la Bitacora de Intervenciones, revisar el correo adjunto para mayor informacion ",
openApp: true
}
);

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: How to add format to an email

You can use the function SendEmail (not the V2), as it has an option to define the body of the message as HTML. With that, you can use some HTML formatting in your message to make it look like you want. Something like the example below:

Office365Outlook.SendEmail(
  "jose.pena04@metalsa.com",
  "Ticket de Edicion",
  Concatenate(
    "<p>Se requiere editar los siguientes campos.</p>",
    "<p><b>Tecnico</b> cambiar por ", TextInput6_7.Text, ".</p>",
    "<p><b>Turno</b> cambiar a ", TextInput6_4.Text, ".</p>",
    "<p><b>Dia/Noche</b> cambiar a ", TextInput6_5.Text, ".</p>",
    "<p><b>Linea</b> cambiar a ", TextInput6_6.Text, ".</p>",
    "<p><b>ENN</b> cambiar a ", TextInput6_8.Text, ".</p>",
    "<p><b>Operacion</b> cambiar a ", TextInput6_9.Text, ".</p>",
    "<p><b>Activo</b> cambiar a ", TextInput6_10.Text, ".</p>",
    "<p><b>Tipo de Falla</b> cambiar a ", TextInput6_11.Text, ".</p>",
    "<p><b>Responsable</b> cambiar a ", TextInput6_16.Text, ".</p>",
    "<p><b>PPS</b> cambiar a ", TextInput6_12.Text, ".</p>",
    "<p><b>Not Listed</b> cambiar a ", TextInput6_13.Text, ".</p>"
    ),
  { Importance: "High", IsHtml: true }
)

Hope this helps!

View solution in original post

1 REPLY 1
Highlighted
Power Apps
Power Apps

Re: How to add format to an email

You can use the function SendEmail (not the V2), as it has an option to define the body of the message as HTML. With that, you can use some HTML formatting in your message to make it look like you want. Something like the example below:

Office365Outlook.SendEmail(
  "jose.pena04@metalsa.com",
  "Ticket de Edicion",
  Concatenate(
    "<p>Se requiere editar los siguientes campos.</p>",
    "<p><b>Tecnico</b> cambiar por ", TextInput6_7.Text, ".</p>",
    "<p><b>Turno</b> cambiar a ", TextInput6_4.Text, ".</p>",
    "<p><b>Dia/Noche</b> cambiar a ", TextInput6_5.Text, ".</p>",
    "<p><b>Linea</b> cambiar a ", TextInput6_6.Text, ".</p>",
    "<p><b>ENN</b> cambiar a ", TextInput6_8.Text, ".</p>",
    "<p><b>Operacion</b> cambiar a ", TextInput6_9.Text, ".</p>",
    "<p><b>Activo</b> cambiar a ", TextInput6_10.Text, ".</p>",
    "<p><b>Tipo de Falla</b> cambiar a ", TextInput6_11.Text, ".</p>",
    "<p><b>Responsable</b> cambiar a ", TextInput6_16.Text, ".</p>",
    "<p><b>PPS</b> cambiar a ", TextInput6_12.Text, ".</p>",
    "<p><b>Not Listed</b> cambiar a ", TextInput6_13.Text, ".</p>"
    ),
  { Importance: "High", IsHtml: true }
)

Hope this helps!

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,817)