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

(0) ShareShare
ReportReport
Posted on by
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,111 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
    1,212 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
    1,212 on at
     
    sorry did not see your response 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 516

#2
WarrenBelz Profile Picture

WarrenBelz 450 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 448

Last 30 days Overall leaderboard