web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Suggested Answer

HELP

(1) ShareShare
ReportReport
Posted on by 2
I'm trying to get my form to send an email to a specific email address. But now I'm left with an error message that I don't understand.
Office365Outlook.SendEmailV2(
"xxxx@hotmail.se";
"Cancellation";
"Type of order:"&Typ.Selected.Value&Char(10)&Char(10)&
"Train number:"&Tagnr.Text&Char(10)&
"Date:"&Datum.Text&Char(10)&
"Time:"&Klocka.Text&Char(10)&Char(10)&
"Departure city:"&StartOrt.Text&Char(10)&
"Arrival city:"&SlutOrt.Text&Char(10)&Char(10)&
"Name:"&Namn.Text&Char(10)&
"Phone:"&Telefon.Text&Char(10)&Char(10)&
"Additional information:"&Upplysning.Text
);
Reset(Typ);
Reset(StartOrt);
Reset(SlutOrt);
Reset(Tagnr);
Reset(Date);
Reset(Clock);
Reset(Name);
Reset(Phone);
Reset(Information);
The error message I get is the following
Unexpected character. Characters are used in an unexpected way in the formula.
For example, the character " is not expected after a number, such as in: "32". A space ("32 ") should be expected, so that only the number 32, or another number (such as in "323") is expected.
Location
*Button
.OnSelect
How to solve

Remove or insert the unexpected characters.
What am I doing wrong?
 
~
 
Jag försöker få mitt formulär att skicka i väg ett mail till en specifik e-post. Men nu har jag ett felmeddelande kvar som jag inte förstår mig på.
 
Office365Outlook.SendEmailV2(
"xxxx@hotmail.se";
"Cancellation";
"Type of order:"&Typ.Selected.Value&Char(10)&Char(10)&
"Train number:"&Tagnr.Text&Char(10)&
"Date:"&Datum.Text&Char(10)&
"Time:"&Klocka.Text&Char(10)&Char(10)&
"Departure city:"&StartOrt.Text&Char(10)&
"Arrival city:"&SlutOrt.Text&Char(10)&Char(10)&
"Name:"&Namn.Text&Char(10)&
"Phone:"&Telefon.Text&Char(10)&Char(10)&
"Additional information:"&Upplysning.Text
);
Reset(Typ);
Reset(StartOrt);
Reset(SlutOrt);
Reset(Tagnr);
Reset(Datum);
Reset(Klocka);
Reset(Namn);
Reset(Telefon);
Reset(Upplysning);
 
 
Felmeddelande som jag får är följande

Oväntat tecken. Tecken används på ett oväntat sätt i formeln.

Tecknet " förväntas t.ex. inte efter ett tal, som exempelvis i: "32". Ett blanksteg ("32 ") borde förväntas, så att det bara är talet 32, eller ett annat tal (som i "323") som förväntas.

 

Plats

*Knapp

  • .OnSelect
 

Så här löser du

 

Ta bort eller sätt de oväntade tecknen.

 

Vad gör jag för fel ????

Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    You need a different function separator - I assume you are using European syntax, which is ; and ;; instead of , and ;
    Office365Outlook.SendEmailV2( 
       "xxxx@hotmail.se";
       "Cancellation";
       "Type of order:" & Typ.Selected.Value & Char(10) & Char(10) &
       "Train number:" & Tagnr.Text & Char(10) &
       "Date:" & Datum.Text & Char(10) &
       "Time:" & Klocka.Text & Char(10)& Char(10) &
       "Departure city:" & StartOrt.Text & Char(10) &
       "Arrival city:" & SlutOrt.Text & Char(10) & Char(10) &
       "Name:" & Namn.Text & Char(10) &
       "Phone:" & Telefon.Text & Char(10) & Char(10) &
       "Additional information:" & Upplysning.Text
    );;
    Reset(Typ);;
    Reset(StartOrt);;
    Reset(SlutOrt);;
    Reset(Tagnr);;
    Reset(Date);;
    Reset(Clock);;
    Reset(Name);;
    Reset(Phone);;
    Reset(Information);;
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
     
    Office365Outlook.SendEmailV2(
        "xxxx@hotmail.se";
        "Cancellation";
        "Type of order: " & Typ.Selected.Value & Char(10) & Char(10) &
        "Train number: " & Tagnr.Text & Char(10) &
        "Date: " & Datum.Text & Char(10) &
        "Time: " & Klocka.Text & Char(10) & Char(10) &
        "Departure city: " & StartOrt.Text & Char(10) &
        "Arrival city: " & SlutOrt.Text & Char(10) & Char(10) &
        "Name: " & Namn.Text & Char(10) &
        "Phone: " & Telefon.Text & Char(10) & Char(10) &
        "Additional information: " & Upplysning.Text
    );
    Reset(Typ);
    Reset(StartOrt);
    Reset(SlutOrt);
    Reset(Tagnr);
    Reset(Datum);
    Reset(Klocka);
    Reset(Namn);
    Reset(Telefon);
    Reset(Upplysning);
  • Vish WR Profile Picture
    3,748 on at
     
    sorry did not see your response 
  • Vish WR Profile Picture
    3,748 on at
     
     

    Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.

     

    Vishnu WR
     
    Please âœ… Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like â™¥
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard