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

Email a Form from button not working

I am trying to email a form with a button click. I use the code below, but everything after the Home Address line breaks the email. Anyone have a better way to do this?

 

 

 

 

 

 

Office365Outlook.SendEmail(EmailAddress,
"Impact Aid Survey for " & ThisItem.FirstName & " " & ThisItem.LastName,
"Student's Name: " & ThisItem.FirstName & " " & ThisItem.MI & " " & ThisItem.LastName & 
Char(10) & "Date of Birth: " & ThisItem.DOB & 
Char(10) & "Home Address: " & ThisItem.Address & ", " & ThisItem.City & ", " & ThisItem.StateZip &
Char(10) & "Is the Residence on Federal Property? " & ThisItem.FederalProperty & 
Char(10) & "Which School does your Child attend? " & ThisItem.School & 
Char(10) & "What Grade is your Child in? " & ThisItem.Grade & 
Char(10) & "Parent Active Duty Military on Oct 1, 2020?: " & ThisItem.Military & 
Char(10) & "Military Parent's Name: " & ThisItem.MilitaryParent & 
Char(10) & "Branch of Service: " & ThisItem.Branch & 
Char(10) & "Rank/Pay Grade: " & ThisItem.PayGrade & 
Char(10) & "Parent on Federal Contract on Oct 1, 2020?: " & ThisItem.Contractor & 
Char(10) & "Contractor Parent's Name: " & ThisItem.ContractorParent & 
Char(10) & "Employeer: " & ThisItem.Employeer & 
Char(10) & "Location: " & ThisItem.Location & 
Char(10) & "Signature: " & ThisItem.Signature & 
Char(10) & "Printed Name: " & ThisItem.PrintedName & 
Char(10) & "Date Signed: " & ThisItem.SignedDate 
)

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Yeiner
Microsoft
Microsoft

Hello @Wisper Use a flow to send all that information 

View solution in original post

2 REPLIES 2
Yeiner
Microsoft
Microsoft

Hello @Wisper Use a flow to send all that information 

View solution in original post

Yeah that worked, I am not very familiar with flows. I got it working just the way I want.

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (46,335)