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

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
Responsive Resident
Responsive Resident

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

Responsive Resident
Responsive Resident

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
Helper V
Helper V

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

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})

Responsive Resident
Responsive Resident

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

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

Responsive Resident
Responsive Resident

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

Hi @SimonPiquer 

 

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

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (32,253)