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

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
CarlosFigueira
Power Apps
Power Apps

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
CarlosFigueira
Power Apps
Power Apps

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

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 the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (68,359)