---
schema_version: "1"
id: 861757a706e6001ca096a4b9cf065882477593c180e4177c7cd464748d8152d6
title: Configure the PrintV2 Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/configure_the_printv2_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.configure_the_printv2_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9f2badd3cf757834e2571042da3f9a6c7e1c5a05837f1d5edb79b67039dc7d52
description: Create an action named PrintV2 in the MyDisplay_DisplayDetailsProcess.processflow.xml contract to trigger PDF report generation in the Consumer Goods offline mobile app.
products:
  - Consumer Goods
release: "264"
---
# Configure the PrintV2 Action

Create an action named PrintV2 in the MyDisplay\_DisplayDetailsProcess.processflow.xml contract to trigger PDF report generation in the Consumer Goods offline mobile app.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d71756e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d71756e63 ">To configure the PrintV2 action:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d71756e63 ">CG Cloud Developer AND Admin</td>

          </tr>
        </tbody>
      </table>

1. Open Visual Studio Code-based Modeler.
2. In your Modeler workspace, in the MyDisplay\_DisplayDetailsProcess.processflow.xml contract located at $workspace/src/MyDisplay/PL/MyDisplayPDF, create the PrintPDF action and add it to the Actions section:
    
    ```
    <!-- PDF Print -->
    <Action name="PrintPDF" actionType="PRINTV2" printId="MyDisplayPDF" locale="ApplicationContext::user.languageSpoken" showShareButton="true">
      <Parameters>
        <Input name="currentDisplay" value="ProcessContext::CurrentDisplay" />
        <Input name="loDisplays" value="ProcessContext::DisplayList" />
      </Parameters>
    </Action>
    ```
3. Save your changes.
4. To check for validation errors, build your contracts by running `sf mdl build`.