0

I am trying to create a SharePoint calendar view with powershell. I need to be able to set the "Day View Sub Heading" value but can't find the fieldref for this type. This is what I have so far (and works):

$viewData="<FieldRef Name='StatusTitle' Type='CalendarMonthTitle'/><FieldRef Name='Title' Type='CalendarWeekTitle'/><FieldRef Name='Location' Type='CalendarWeekLocation' /><FieldRef Name='Title' Type='CalendarDayTitle' /><FieldRef Name='Location' Type='CalendarDayLocation' />";

I was looking for something along the lines of:

<FieldRef Name='Session' Type='CalendarDaySubHeading' />

1 Answer 1

0

I was mistaken. The Day View Sub Heading type is named CalendarDayLocation. The reason I was thrown for a loop here is because someone change the title of calendar's "Location" column to another value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.