---
schema_version: "1"
id: fbba7869bc7ad5cfb57a3e4d21225e0e42a886a69e34114919120fee3839c724
title: createPresentationContent(presentationContentInput)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/apex_connect_api_LifeSciPresentation_createPresentationContent.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/apex_connect_api_LifeSciPresentation_createPresentationContent.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 99950cdbfa1d4eb00bc1ef9a95c95481b1a05e67f0a2ec643b3ce051d27ec7a4
description: Create new presentation content with the provided metadata.
---
# createPresentationContent(presentationContentInput)

Create new presentation content with the provided metadata.

## API Version

65.0

## Requires Chatter

No

## Signature

public static ConnectApi.GenericResponseOutputRepresentation createPresentationContent(ConnectApi.PresentationContentInputRepresentation presentationContentInput)

## Parameters

presentationContentInput

Type: [ConnectApi.PresentationContentInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/apex_connect_api_input_presentation_content_input.htm "Input representation for creating or updating presentation content.")

Input representation that contains the metadata for the presentation content. The fileId field is not accepted in this Apex representation.

## Return Value

Type: [ConnectApi.GenericResponseOutputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/apex_connect_api_output_generic_response_output.htm "Output representation for a generic response from a Connect API call.")

## Example

ConnectApi.PresentationContentInputRepresentation input = new ConnectApi.PresentationContentInputRepresentation();
input.contentType = 'PRESENTATION\_PDF';
ConnectApi.PresentationInput presentation = new ConnectApi.PresentationInput();
presentation.name = 'PDF Presentation Name';
presentation.id = 'pdf-presentation-id';
presentation.enableDoubleTapZoom = true;
presentation.enablePinchZoom = true;
presentation.playerGesture = 'SWIPEUP';
presentation.activationDate = Date.today();
presentation.deactivationDate = Date.today().addDays(365);
input.presentation = presentation;
input.pages = new List<ConnectApi.PresentationPageInput>();
ConnectApi.PresentationPageInput page1 = new ConnectApi.PresentationPageInput();
page1.pageNumber = 1;
page1.name = 'PDF Page 1 Name';
page1.id = 'pdf-page-name-1';
page1.mandatory = true;
page1.contentDocumentId = '069SB0000048cPDYAY';
page1.activationDate = Date.today();
page1.deactivationDate = Date.today().addDays(365);
ConnectApi.ProductGuidanceRepresentation product1 = new ConnectApi.ProductGuidanceRepresentation();
product1.productId = '1KeYH0000001j2m0AA';
product1.guidanceIds = new List<String>();
product1.guidanceIds.add('guidance-id-1');
product1.guidanceIds.add('guidance-id-2');
page1.products = new List<ConnectApi.ProductGuidanceRepresentation>();
page1.products.add(product1);
input.pages.add(page1);
ConnectApi.PresentationPageInput page2 = new ConnectApi.PresentationPageInput();
page2.pageNumber = 2;
page2.name = 'PDF Page 2 Name';
page2.id = 'pdf-page-name-2';
page2.mandatory = true;
page2.activationDate = Date.today();
page2.deactivationDate = Date.today().addDays(365);
input.pages.add(page2);
System.debug(ConnectApi.LifeSciPresentation.createPresentationContent(input));