globe-pointerUsing the Avonni Flow Screen Components in Experience Cloud

Overview

This documentation provides the technical requirements and configuration steps for deploying Avonni Components for Flows within a Salesforce Experience Cloud site. By following this guide, you can ensure that both authenticated and unauthenticated (guest) users can interact seamlessly with advanced flow screens and data-driven components.

What this guide covers:

  • Implementation: How to embed Avonni-enhanced flows into the Digital Experience Builder.

  • Access Control: Managing Permission Sets, Licenses, and Flow Access for internal and external users.

  • Guest User Configuration: Specific security settings and API permissions required for unauthenticated access.

  • Data Visibility: Enabling System Mode for components using the Query Data Source to ensure data displays correctly in public environments

circle-check

Did you know?


How to use it in Experience Cloud

Using Avonni Components, you can easily integrate the flows you've created into Salesforce. Using the Digital Experience Cloud Builder, you can add these wherever you can insert a flow on your Experience Cloud Sites.


User And Permission Management

Before adding a flow with Avonni Components to your Experience Cloud site, ensure you set up the correct user permissions to ensure everything works smoothly. Here's a quick checklist:

Permission Set

  1. Go to the Permission Sets page in Salesforce Setup.

  2. Find the Avonni Flow Screen Components permission set and click on it.

  3. Assign this permission set to the user profiles or permission sets that need access to Avonni Components in Flows

To give your users access to Avonni Components in Flows, ensure the "Avonni Flow Screen Components" permission set is assigned.

License

Every user who needs to interact with Avonni Components within your flows must have an Avonni Components license assigned to them.

  • With a license: The user can use and interact with all the Avonni Components in your flows.

  • Without a license: The user will see an error message asking them to contact their Salesforce Administrator to request access to the Avonni Components

Flow Access

Ensure your users can access the flow that contains Avonni Components. You have two options to manage access:

  1. Default Flow Permissions:

    • Go to the user's profile or permission set.

    • Make sure the "Run Flows" or "Manage Flow" permission is enabled. This will give them general access to run flows in your org.

  2. Override Flow Access:

    • When you create or edit your flow, go to the "Settings" section.

    • Under "How to Run the Flow", choose "Run the flow only in these profiles or permission sets".

    • Select the specific profiles or permission sets you want to grant access to this particular flow.

By using either of these methods, you can control which users can run the flow and interact with the Avonni Components within it.

Object and Field Access

Finally, it's crucial to verify that your users have the appropriate permissions to view and modify the specific objects and fields your flow uses.

  • Check the user's profile or permission set to ensure they have the necessary object-level and field-level permissions.

By following these steps, you can ensure your users have the appropriate access to interact with Avonni Components within your Experience Cloud site, providing a seamless, error-free experience.


Guest users

To allow guest users to access Avonni Components in flows used on your Experience Cloud Site, you need to follow a few configuration steps. Here's what you need to consider:

circle-exclamation

Make your Site accessible for Guest Users

  • Enable Public Access: Ensure your Experience Cloud site is configured for public access.

  • Allow API Access: In the site's Administration area, navigate to the Preferences page and enable the "Allow guest users to access public APIs" setting.

Configure Flow Access

Ensure that your flow is accessible to the guest user profile on your Experience Cloud site. Here's how to check and adjust those settings,

  • Navigate to the Guest User profile page.

  • Add the desired flow to the "Enabled Flow Access" section to grant guest users access.

Assign Permission to Guest Users

The final step in allowing guest users to access Avonni Components in your flows is to assign the necessary permissions:

  1. Permission Sets Page: Navigate to the Permission Sets section within Salesforce Setup.

  2. Avonni Flow Screen Components: Locate the "Avonni Flow Screen Components" permission set.

  3. Manage Assignments: Click on "Manage Assignments" for the permission set.

  4. Assign to Guest User: Select the Guest User profile and add it to the list of assigned users.

By completing this process, guest users will have the required permissions to interact with and utilize the Avonni Components embedded in your flows

Publish Changes

Publish your site to make the changes live.

By following these steps, guest users can interact with the Avonni Components embedded in your flows, enhancing the functionality and accessibility of your Experience Cloud site.

triangle-exclamation

IMPORTANT! System Mode


Troubleshooting

Here are the most common errors when trying to add a flow to your Experience Cloud Site with Avonni Components inside.

You do not have the level of access necessary error

You'll see this error message on a flow in Experience Cloud if the logged-in user doesn't have permission to run it. Ensure that users with the selected profile either have general flow permissions or are explicitly listed as able to access this flow.

You don't have access to this Avonni Component error

This error happens when either:

  • The affected user doesn't have the required permission set assigned.

  • The selected user doesn't have a license assigned.

To fix this, you can add a license to the user by going to the Installed Packages page in Salesforce Setup and then clicking on Manage Licenses.

Flow and Avonni Components are Visible, but No Data

If the flow and the Avonni Components appear on the page but are empty (no records or information displayed), it is almost always a permissions or data access issue.

Check these three things:

  1. System Mode (Crucial for Guest Users): If the issue is occurring for guest users and you are using a Query Data Source, check the component's advanced settings. You must enable System Mode under the Advanced Options of the Query Data Source section. Without this, Salesforce’s security model will prevent guest users from fetching data, resulting in an empty component.

  2. Object and Field Permissions: For logged-in users, ensure their profile or permission set has at least "Read" access to the specific objects and fields the flow is trying to display.

  3. Apex Class Access: Ensure the guest user's profile has access to the necessary Avonni Apex classes:

    • Go to Profile Settings.

    • Search for "Avonni Components (avcmpbuilder)" Apex classes.

    • Add those classes to the profile.

Last updated

Was this helpful?