cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dalacarelia_196
Post Patron
Post Patron

Office365Outlook.V4CalendarPostItem problems

Hello out there 

 

I am a Swedish user here the name of calendar is Kalender 

To find calendar names i use this in a listbox  Office365Outlook.CalendarGetTables().value

 

If i find the word Kalender i change that in my code below  to "Kalender" , but the code with "Calednar"
works 4 some users but not all so there is my totaly confusion . 


When i am logged in the result is in  my dropdownlist Kalender 

dalacarelia_196_0-1637395470603.png

 

This code works for me and my test user but not all clients and they also have Kalender in their app . 

 

Office365Outlook.V4CalendarPostItem("Calendar";
"The funny subject";
DateAdd(Now(); TimeZoneOffset(); Minutes);
DateAdd(Now() ; 10 + TimeZoneOffset(); Minutes)
;"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"

)

This code now with Kalender works for some oft the clienst bur not for me . 


Office365Outlook.V4CalendarPostItem("Kalender";
"Ämne";
DateAdd(Now(); TimeZoneOffset(); Minutes);
DateAdd(Now() ; 10 + TimeZoneOffset(); Minutes)
;"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"

)
Here si a link to see the problem : https://youtu.be/1XcyzCgmygM

2 ACCEPTED SOLUTIONS

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @dalacarelia_196 

 

Can you insert a gallery and Set the Items property to

Office365Outlook.CalendarGetTablesV2().value

to verify the names of the Calendar the user has

StalinPonnusamy_0-1637432870895.png

 

Another Workaround is

Office365Outlook.V4CalendarPostItem(If(!IsBlank(LookUp(Office365Outlook.CalendarGetTablesV2().value, name = "Calendar")),"Calendar","Kalender");
"The funny subject";


Thanks,
Stalin - Learn To Illuminate

View solution in original post

powercorner
Responsive Resident
Responsive Resident

Hello @dalacarelia_196 ,

 

first of all! It is very nice that you recorded a short clip to describe your problem. That makes things much easier!!!
I think your problem has something to do with the Id you are sending in the PostItem function.
Because the displayname of a calendar can be different, so its better to use its Id.

Ad you can see on my picture I also added the calendar items into a dropdown (DropDown1 - command: Office365Outlook.CalendarGetTables().value)
And I used the Dropdown.Selected.Name in the PostItem function to make sure that its created properly. Your error which you showed in your screenrecording was pointing at the id. So it might be that the displayname differs for users with a different language. I think this aproach should work.

powercorner_1-1637433108489.png

 

 

With regards,
Kevin

View solution in original post

4 REPLIES 4
StalinPonnusamy
Super User
Super User

Hi @dalacarelia_196 

 

Can you insert a gallery and Set the Items property to

Office365Outlook.CalendarGetTablesV2().value

to verify the names of the Calendar the user has

StalinPonnusamy_0-1637432870895.png

 

Another Workaround is

Office365Outlook.V4CalendarPostItem(If(!IsBlank(LookUp(Office365Outlook.CalendarGetTablesV2().value, name = "Calendar")),"Calendar","Kalender");
"The funny subject";


Thanks,
Stalin - Learn To Illuminate

powercorner
Responsive Resident
Responsive Resident

Hello @dalacarelia_196 ,

 

first of all! It is very nice that you recorded a short clip to describe your problem. That makes things much easier!!!
I think your problem has something to do with the Id you are sending in the PostItem function.
Because the displayname of a calendar can be different, so its better to use its Id.

Ad you can see on my picture I also added the calendar items into a dropdown (DropDown1 - command: Office365Outlook.CalendarGetTables().value)
And I used the Dropdown.Selected.Name in the PostItem function to make sure that its created properly. Your error which you showed in your screenrecording was pointing at the id. So it might be that the displayname differs for users with a different language. I think this aproach should work.

powercorner_1-1637433108489.png

 

 

With regards,
Kevin

Perfect

With your gallery , spot on my problem  Thank you sir for the help .

I am so happy now .

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,937)