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 Apps / V4CalendarPatchItem an...
Power Apps
Unanswered

V4CalendarPatchItem and V4CalendarPostItem not applying categories.

(1) ShareShare
ReportReport
Posted on by
Hi, I've been trying to update categories of support booking events we have for my team, the 'categories' key is shown under both functions on documentation but neither seems to work, I've tried several approaches including explicit strings matching the categories for the mailbox as well as the approach below. For context, the control running the code is a gallery button which has its property set to the category names from the calendar, and they definitely match (I've also tried using simple strings).
Office365Outlook.V4CalendarPatchItem(
    _myCalendar,
    AdminEvent.Id,
    AdminEvent.Subject,
    Text(AdminEvent.Start, "yyyy-mm-dd" & "T" & "HH:mm:ss"),
    Text(AdminEvent.End, "yyyy-mm-dd" & "T" & "HH:mm:ss"),
    AdminEvent.TimeZone,
    {
        categories: [ ThisItem.Value ],
        requiredAttendees:(locSupportUser.Email)
    }
);
 
Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
     
    Try using below formula (I have just modified the categories part):
     
    Office365Outlook.V4CalendarPatchItem(
        _myCalendar,
        AdminEvent.Id,
        AdminEvent.Subject,
        Text(AdminEvent.Start, "yyyy-mm-dd" & "T" & "HH:mm:ss"),
        Text(AdminEvent.End, "yyyy-mm-dd" & "T" & "HH:mm:ss"),
        AdminEvent.TimeZone,
        {
            categories:(["Green Category"]),
            requiredAttendees:(locSupportUser.Email)
        }
    );

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard