Features

Document Generation configuration

This section will guide you through the initial steps required to configure and set up the CloudFiles Document Generation feature within your Salesforce environment. We will start by installing the CloudFiles Word add-in and then connecting it to your Salesforce org. Once this is done, we will set up the CloudFiles Document Generation Lightning Web Component (LWC) to help you get started with generating Word documents or PDFs using Salesforce data.

Let's get started with setting up CloudFiles Document Generation!

How to install CloudFiles Word add-in

The CloudFiles Word add-in facilitates the integration of CloudFiles with your Salesforce Org and enables to create and design templates with Salesforce fields in it.

Follow these steps to add the CloudFiles word add-in to your Microsoft Word -

  1. Launch the Microsoft Word application on your PC.
  2. Go to the "Home" tab and click on "Add-ins" to explore available add-ins.
  3. In the Add-ins window, click on "+ More Add-ins" to open the "Office Add-ins" window.
  4. In the "Office Add-ins" window, click on "Microsoft AppSource" to be redirected to appsource.microsoft.com.
  5. In the search bar, type "CloudFiles" and browse the results to find the CloudFiles Add-in.
  6. Click on "Get it now" to install the CloudFiles word add-in for Microsoft Word.
  7. Once the installation is complete, click on "Open in Word" to check the CloudFiles word add-in Word.
  8. In the "New Office Add-in" sidebar, click "Allow and Continue" to launch the CloudFiles word add-in.

Refer to the video below to have a visual understanding of these steps -



These steps will help you integrate CloudFiles with Microsoft Word, allowing you to start creating and designing templates with Salesforce records.

How to connect CloudFiles word add-in to Salesforce

Follow the steps below to connect CloudFiles Word add-in to your Salesforce org -

  1. Open Microsoft Word and navigate to the "Add-ins" section. Select and launch the CloudFiles word add-in.
  2. Sign in to the Salesforce Org you want to set up for document generation.
  3. In the "Sign-in" sidebar, click "Production" to connect to a production Org, or click "Sandbox" to connect to a Sandbox Org.
  4. A sign-in window will open. Sign in with your Salesforce user account and follow the on-screen prompts to verify the connection.
  5. Once signed in, you will be directed to the template building stage, where you can start creating your document templates.

Follow the GIF below to have a visual understanding of these steps -

Document image


These steps will establish a connection between Salesforce and CloudFiles Word-in, enabling you to design templates and generate documents. This is how it looks like -

Document image


How to set-up CloudFiles Document Generation LWC in Salesforce

The CloudFiles Doc Gen LWC can be easily added to any object's record detail page in Salesforce. Once added, this widget will display all the published templates related to that object. Users can then generate documents in either DOCX or PDF format, which will be automatically downloaded upon generation.

Document image


Follow the steps below to add CloudFiles Doc Gen widget to any page -

  1. Go to any Object's record detail page and click “Edit Page” Button.
  2. Lightning builder for this page will open. Drag and drop the "CloudFiles Doc Gen" widget into the desired location.
  3. Save and exit the builder.
  4. Refresh the Salesforce record page.
  5. The widget displays all the published templates for that object.

For visual understanding, refer to the video below -



Setting up the CloudFiles Document Generation feature within your Salesforce environment is a straightforward process that starts with installing the CloudFiles Word add-in and connecting it to your Salesforce org. Once configured, the CloudFiles Document Generation Lightning Web Component (LWC) can be easily added to any object's record detail page, allowing users to generate documents with Salesforce data seamlessly.