For Salesforce admins: let customers or partners who log in to your Experience Cloud site generate documents from the records they can see, for example a partner downloading a quote from an opportunity. It takes about 30 minutes once the document solution works for your internal users.

Docs Made Easy supports document generation on Experience Cloud sites, formerly Community Cloud (see the Experience Cloud FAQ). The solution button works on Experience Cloud sites, as it does in the Salesforce mobile app, Console apps and Salesforce Classic. Site users can generate documents once you assign them the right licenses, and guest users are supported too. This guide puts the setup steps together for logged-in site users.

Before you begin

  • A document solution that works for internal users. Click its button on a record yourself first. If it fails there, it fails on the site too. See Generate your first document.
  • An Experience Cloud site with the object's record pages, and access to Experience Builder.
  • System Administrator access, to assign licenses and permission sets and edit page layouts.
  • Test site users on the profile you plan to use, so you can check the setup as one of them.

How it works

Docs Made Easy works under the Salesforce login of the person who generates the document (DME-AUTH-001). So a site user needs the same three things as an internal user (a license, the permission set with the connected app and a one-time Authorize App) and Salesforce access to every record and field the template uses. The button reaches the site through the page layout, like it does on internal record pages.

Give site users access

  1. Check record access. Make sure the site users' Experience Cloud license and profile give Read access to the object and every field the template uses, and that sharing (sharing sets, sharing rules or roles, depending on the license) lets them see the records. If they can't read something the document needs, generation fails with DME-SF-004.
  2. Assign licenses. Site users need Docs Made Easy licenses assigned to them to generate documents. In Setup, open Installed Packages, click HIC Docs Made Easy, click Manage Licenses, then Add Users, select the site users and click Add. Repeat for the Docs Made Easy Pro package if you use Pro. See Assign licenses and permission sets.
  3. Assign the permission set. Assign your cloned copy of Docs Made Easy Pro User, with the Docs Made Easy API connected app enabled under Assigned Connected Apps, to the site users with Manage Assignments.
  4. Check the connected app policy and trusted URL. In App Manager, Docs Made Easy API should have Permitted Users set to Admin approved users are pre-authorized. In Trusted URLs, DMECSP for https://docsmadeasy.app should have connect-src (scripts) selected. You set both during the standard setup.

Show the button on site pages

  1. In Setup, open Object Manager, select the object (for example Opportunity), click Page Layouts and open the layout assigned to the site users' profile. Page Layout Assignment shows which one it is.
  2. Click Mobile & Lightning Actions in the palette, drag your solution button into the Salesforce Mobile and Lightning Experience Actions section and click Save. This is the same step as in the Document Automation Wizard.
  3. Open your site in Experience Builder and go to the object's record detail page. Check that the page has a component that shows record actions (for example the record banner or highlights panel) and that actions aren't hidden in its properties.
  4. Click Publish so the change reaches site users.

Verify it worked

  1. Open the contact record of a test site user and select Log in to Experience as User (you need the Salesforce permission to log in as site users).
  2. Open a record the user can see. The solution button shows on the page.
  3. Click the button. The first time, the user is asked to click Authorize App and then Allow (Authorize App).
  4. Generate the document. It contains the record's data, not blank fields or raw {{…}} tags, and goes where the solution sends it (where documents go).

Troubleshooting

SymptomLikely causeFix
No button on the site's record pageButton on another layout, wrong layout section, record page doesn't show actions, or site not publishedCheck steps 1–4 above and Users can't see the button.
Authorize App promptThe user hasn't authorized the app yetThe site user clicks Authorize App and Allow once. Admins can't do it for them.
"Insufficient access rights" (DME-SF-004)The site user can't read a record or field, or can't save the file to the recordFix the profile, field-level security or sharing for the site user.
Fields blank or the generation fails on a field (DME-SF-002)Field-level security hides a field from the site user's profileGrant read access to the field, or remove it from the template.
Session expired or invalid (DME-AUTH-001)The site session timed out, or you're logged in as yourself and as the site user in the same browserLog in again, or test in a separate browser profile.

Next steps