cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Big_S
Level: Powered On

Send Calendar Invites

Hi Guys,

 

Does anyone knows how to function this? if I select the Save button recipients will receive calendar invites. 

This are the fields : Meeting Name, Objective, Venue, Start Date time, End Date time, Agenda

Below is the screenshot.

save.png

Thank you so much.

2 ACCEPTED SOLUTIONS

Accepted Solutions
SimonPiquer
Level 8

Re: Send Calendar Invites

Hi!

 

What is your 'EmailRecipients' variable? The first value of Office365.V2CalendarPostItem should be the calandar you want to create the event in. For instance you can have a dropdown with the Items property set to:

Office365.CalendarGetTables().value.DisplayName

And then set the OnSelect of the save button to

Office365.V2CalendarPostItem(Dropdown1.SelectedText.Value,...

As far as I can see you haven't specified who to invite, if that is what 'EmailRecipients' is, you need it to add it inside the curly brackets, so your complete code could look like:

 

Office365.V2CalendarPostItem(
    Dropdown1.SelectedText.Value,
    createMeetingNameTextInput.Text,
    timeStartDatePicker.SelectedDate + Time(
        Value(startDateHr.Selected.Value),
        Value(startDateMin.Selected.Value),
        0
    ),
    timeEndDatePicker.SelectedDate + Time(
        Value(endDateHr.Selected.Value),
        Value(endDateMin.Selected.Value),
        0
    ),
    {
        Body: createMeetingObjectiveTxtInput.Text,
        IsHtml: true,
        RequiredAttendees: EmailRecipients
    }
)

I believe you also need to format the 'EmailRecipients' as e-mail adresses, otherwise it might not get sent. 

 

 

View solution in original post

SimonPiquer
Level 8

Re: Send Calendar Invites

If you are using the Office 365 Users connector you could pretty much forgo the EmailRecipients variable and use

 

RequiredAttendees: Concat(recipientGallery2.AllItems, Mail & "; ")

Or you can have the button update the context of EmailRecipient with the above in the beginning of the code, if you want to keep the variable for some reason. 

 

Glad I could help!

 

 

View solution in original post

6 REPLIES 6
Highlighted
Big_S
Level: Powered On

Re: Send Calendar Invites

This is my error, I think it has something to do with EmailRecipients i'm not sure
error2.png 

Big_S
Level: Powered On

Re: Send Calendar Invites

This is my formula

OnSelect Save Button

Office365.V2CalendarPostItem(EmailRecipients, createMeetingNameTextInput.Text, timeStartDatePicker.SelectedDate + Time(Value(startDateHr.Selected.Value),
Value(startDateMin.Selected.Value), 0),
timeEndDatePicker.SelectedDate + Time(Value(endDateHr.Selected.Value),
Value(endDateMin.Selected.Value), 0),
{Body: createMeetingObjectiveTxtInput.Text, IsHtml: true})

SimonPiquer
Level 8

Re: Send Calendar Invites

Hi!

 

What is your 'EmailRecipients' variable? The first value of Office365.V2CalendarPostItem should be the calandar you want to create the event in. For instance you can have a dropdown with the Items property set to:

Office365.CalendarGetTables().value.DisplayName

And then set the OnSelect of the save button to

Office365.V2CalendarPostItem(Dropdown1.SelectedText.Value,...

As far as I can see you haven't specified who to invite, if that is what 'EmailRecipients' is, you need it to add it inside the curly brackets, so your complete code could look like:

 

Office365.V2CalendarPostItem(
    Dropdown1.SelectedText.Value,
    createMeetingNameTextInput.Text,
    timeStartDatePicker.SelectedDate + Time(
        Value(startDateHr.Selected.Value),
        Value(startDateMin.Selected.Value),
        0
    ),
    timeEndDatePicker.SelectedDate + Time(
        Value(endDateHr.Selected.Value),
        Value(endDateMin.Selected.Value),
        0
    ),
    {
        Body: createMeetingObjectiveTxtInput.Text,
        IsHtml: true,
        RequiredAttendees: EmailRecipients
    }
)

I believe you also need to format the 'EmailRecipients' as e-mail adresses, otherwise it might not get sent. 

 

 

View solution in original post

Big_S
Level: Powered On

Re: Send Calendar Invites

IT works!!! now i'll search on how to format the 'EmailRecipients' as e-mail addresses THANK YOU SO MUCH!

SimonPiquer
Level 8

Re: Send Calendar Invites

If you are using the Office 365 Users connector you could pretty much forgo the EmailRecipients variable and use

 

RequiredAttendees: Concat(recipientGallery2.AllItems, Mail & "; ")

Or you can have the button update the context of EmailRecipient with the above in the beginning of the code, if you want to keep the variable for some reason. 

 

Glad I could help!

 

 

View solution in original post

Big_S
Level: Powered On

Re: Send Calendar Invites

Hi @SimonPiquer 

 

Actually, you're a big help! Thank you so much it works! 🙂 thank you so much! thank you!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,815)