Create meeting workspace pages programmatically in SharePoint

You can add meeting workspaces pages with the SharePoint UI and also manage them. It is also possible that you can create workspace pages programmatically.

Here is the code to do this.

Add the following references

using Microsoft.SharePoint;
using Microsoft.SharePoint.Meetings;
//Code:

string url = SPContext.Current.Site.Url;
string newPageUrl = String.Empty;
using (SPSite site = new SPSite(url))
 {
   using (SPWeb meetingWeb = site.OpenWeb())
   {
     SPMeeting meeting = SPMeeting.GetMeetingInformation(meetingWeb);
     meeting.AddPage("Eblogin Page", meeting.InstanceId, out newPageUrl);
   }
 }

Note: [“If you give instance id you can’t manage your page through UI, If you want to add page regardless of instance you can replace meeting.InstanceId with zero(0) in the AddPage() method parameters, now it will behave same to pages added by using UI and you can manage them using user interface. ”]

More Blogs

Contact us

To begin your digital transformation, get in touch.

We’re pleased to address any inquiries you might have and assist you in selecting the service that best suits your requirements.

Your benefits:
Speak To Us