Newer Version Available
updatePresentationContent(presentationContentInput)
API Version
65.0
Requires Chatter
No
Signature
public static ConnectApi.GenericResponseOutputRepresentation updatePresentationContent(ConnectApi.PresentationContentInputRepresentation presentationContentInput)
Parameters
- presentationContentInput
- Type: ConnectApi.PresentationContentInputRepresentation
- Input representation that contains the metadata for the presentation content. The fileId field is not accepted in this Apex representation.
Return Value
Example
1ConnectApi.PresentationContentInputRepresentation input = new ConnectApi.PresentationContentInputRepresentation();
2input.contentType = 'PRESENTATION_PDF';
3ConnectApi.PresentationInput presentation = new ConnectApi.PresentationInput();
4presentation.name = 'Updated PDF Presentation Name';
5presentation.id = 'pdf-presentation-id';
6presentation.enableDoubleTapZoom = false;
7presentation.enablePinchZoom = false;
8presentation.playerGesture = 'TAPBOTTOM';
9presentation.activationDate = Date.today().addDays(1);
10presentation.deactivationDate = Date.today().addDays(400);
11input.presentation = presentation;
12input.pages = new List<ConnectApi.PresentationPageInput>();
13ConnectApi.PresentationPageInput page1 = new ConnectApi.PresentationPageInput();
14page1.pageNumber = 1;
15page1.name = 'Updated PDF Page 1 Name';
16page1.id = 'pdf-page-name-1';
17page1.mandatory = true;
18page1.contentDocumentId = '069SB0000048cPEYBZ';
19page1.activationDate = Date.today().addDays(1);
20page1.deactivationDate = Date.today().addDays(400);
21input.pages.add(page1);
22ConnectApi.PresentationPageInput page2 = new ConnectApi.PresentationPageInput();
23page2.pageNumber = 2;
24page2.name = 'Updated PDF Page 2 Name';
25page2.id = 'pdf-page-name-2';
26page2.mandatory = false;
27page2.activationDate = Date.today().addDays(1);
28page2.deactivationDate = Date.today().addDays(400);
29input.pages.add(page2);
30System.debug(ConnectApi.LifeSciPresentation.updatePresentationContent(input));