1. Knowledge Base
  2. Data View Toolset (SPFx)

Export specific columns to CSV file in Calendar Plus web Part

Please follow the steps in the article if you would like to export specific columns from the Calendar Plusweb part. The below example is for Calendar Plus web part but can be applied to our other web parts such as Data View Plus.

 
1. Navigate to Menu Bar "Configure Control" and click on the ellipsis near the "ExportNoLable" 
    option within the "Top Actions" section.

2. In the "Write your own JavaScript code for this function:" field, paste the code in the link below;
4. The code above specifies the columns to be exported with their corresponding internal names         and titles. You can customize the list of columns by adding or removing entries in the array.
     Here is the list of all the columns available in Calendar Plus when connected to your Outlook         Calendar using Graph API:
     dvp_FileType', 'Id', 'Title', 'dvp_ViewFormUrl', 'subject', 'body', 'bodyPreview', 'start', 'end',           'location', 'attendees', 'organizer', 'categories', 'importance', 'isAllDay', 'recurrence',               
     '@odata.etag', 'id', 'type', 'dvp_Subject', 'dvp_Location', 'dvp_Description', 'dvp_Categories',
     'dvp_EventDate', 'dvp_EndDate', 'dvp_IsAllDayEvent', 'dvp_IsRecurrence', 'dvp_Attendees',
     'selected', 'highlight', 'unseen', 'dvp_DataSourceName', 'dvp_DataSourceId', 'dvp_format'

5. After following these steps, you will see additional columns have been added when you export         to CSV format.