You are here:
Create a Document Generation Process Record Using Flow or Apex
Create a Document Generation Process record by creating a Flow with a Create Records element or by configuring an Apex class.
You are here:
Create a Document Generation Process record by creating a Flow with a Create Records element or by configuring an Apex class.
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions with the Revenue Cloud Billing license. Contact your Salesforce account executive for more information. |
| User Permissions Needed | |
|---|---|
| To create a flow: | Manage Flow |
| To configure an Apex class: | Author Apex |
| To create a Document Generation Process record: | Billing Admin permission set OR Billing Operations User permission set |
| To generate invoice PDF documents: | DocGen User permission set |
If you create a flow, add an element to get the document template to use for generating the invoice PDF document. Then, add a Create Records element with these values:
{"Id":"<Enter Invoice ID>"} format as the
data mapper input.
{"keepIntermediate":false,"title":"<Enter Invoice
Number/ Document Number>"} format as the request input.
If you configure an Apex class, specify the same values that are mentioned for the Create Records element.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.