Download page Adding Header and Footer Text without Document Protection.
Adding Header and Footer Text without Document Protection
This API allows you to append the given text to the header and footer for a given document.
Note
appendToHeaderFooter does not support protection levels for FX1 documents (FX2 documents do support document protection). Document protection levels are reset when header and footer are added. To retain protection levels for FX1 documents, use appendToHeaderFooter2instead.
The id of the document which will have header and footer content added to it.
Yes
headerText
String
The header text to be appended to the document.
Yes
footerText
String
The footer text to be appended to the document.
Yes
sessionId
String
The Salesforce session id.
Yes
serverUrl
String
The Salesforce server Url.
Yes
Response Parameter
Name
Type
Description
result
Boolean
Indicates whether the header and footer are added successfully.
Code Sample
ID docId= AttachmentId;
String headerText = 'This is Header';
String footerText = 'This is Footer';
String apiServerURL = System.Url.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/u/50.0/' +
UserInfo.getOrganizationId();
String SessionId = sessionId; //This is the session Id.
String generatedDocId = Apttus_Proposal.MergeWebService.appendToHeaderFooter(docId, headerText, footerText, sessionId, serverUrl);
CODE
Integration Details
Use the following information in your integrations with Apttus Contract Management Web Services API. For information on how to get started, refer to Integrating Conga CLM with External Systems.