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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "Invalid Attendee Emai...
Power Automate
Unanswered

"Invalid Attendee Email" upon create an event in Google Calendar

(0) ShareShare
ReportReport
Posted on by 7

Hi Microsoft Power Automate Community,

 

I have an issue trying to set an array of email to Google Calendar event.

 

Set Variable - email:

items('Apply_to_each_2')?['Emails']

 

Compose - Inputs:

variables('email')

 

Compose 2 - Inputs:

split(outputs('Compose'),';')

 

Create an Event - Google Calendar:

string(variables['email'])

 

My current output for string(variables['email']) is xxx@gmail.com;xxx1@gmail.com

I have them connected with ';', but I am not sure why the email is invalid, when a certain array has only one email, the Google Calendar event is added successfully.

 

Thanks a ton for your help.

Categories:
I have the same question (0)
  • v-yiwenxie-msft Profile Picture
    Microsoft Employee on at

    Hi @Flow_Lover 

     

    The reason why you get error is that your ‘set variable’ is wrong. If you use items() for ‘set variable’, then the variable will be refreshed each time and the variable will consistently only have one email address (even though the email address may differ each time) in it.

     

    If you want to save many email addresses in an array and convert them into string separated by ‘;’, the following whole flow is for your reference:

     

    Here I use a column named ‘email address’ from excel table and I want to get all the values in this column to let me send an email.

    2.18-6.PNG

     

    The detailed steps for ‘initialize variable’:

    2.18-7.PNG

     

    The detailed steps for ‘Apply to each’:

    The reason why I use ‘append to array variable’ rather than ‘set variable’ lies in:

    The 'set variable' action will reset the variable, which erases all the content formerly exist in the variable.

    The 'append to array variable' action will add new content to the variable and retain the content formerly exist.

    2.18-8.PNG

    The ‘Value’ in ‘Append to array variable 2’ is:

    {"emails":@{variables('email')}}

     

    The detailed steps for ‘compose’:

    2.18-9.PNG

    ‘Compose’:

    last(variables('email array'))

     

    ‘Compose 2’:

    outputs('Compose')?['emails']

     

    ‘Compose 3’:

    join(outputs('Compose_2'),';')

     

    For more info about last(), outputs(), join():

    Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

    Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

    Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

     

    The result of my test is:

    2.18-10.PNG

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Flow_Lover Profile Picture
    7 on at

    Hi, thank you so much! I will look at this and try it for myself! I'll update you till then!

  • Flow_Lover Profile Picture
    7 on at

    Hi! I forgot to mention that in my email columns there's actually a lot of emails like this:

     

    I already did something like Column W: xxx1@gmail.com;xxx2@gmail.com;xxx3@gmail.com

     

    I am not sure why it doesn't work hmm.

     

    Flow_Lover_0-1613978849494.png

     

    Thanks!

  • v-yiwenxie-msft Profile Picture
    Microsoft Employee on at

    Hi @Flow_Lover 

     

    There may be some problem with your flow.

    Could you take a detailed screenshot of your flow and detailed error?

     

    If your email addresses are like xxx1@gmail.com;xxx2@gmail.com;xxx3@gmail.com, then it should not be in a invalid structure. But please make sure there is no leading and trailing whitespace in this email string. 

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard