Configure Salesforce for AEM Forms configure-azure-storage
Experience Manager Forms Data Integration provides Salesforce Cloud Services to integrate Adaptive Forms with OOTB Form Data Model (FDM). The Adaptive Forms can then interact with Salesforce servers to enable business workflows. For example:
- Write data into Salesforce on Adaptive Form submission.
- Write data in Salesforce through custom entities defined in Form Data Model (FDM) and conversely.
- Query Salesforce server for data and prepopulate Adaptive Forms.
- Read data from Salesforce server.
Salesforce cloud services and Form Data Model (FDM) are available out of the box on the AEM Forms Server after you set up a development project for Forms based on Experience Manager archetype.
Configure Salesforce cloud service configure-salesforce-cloud-service
Before configuring the Salesforce cloud services, ensure that you perform the following tasks:
-
Create a connected OAuth-enabled Salesforce application. When you are creating the connected Salesforce application, specify the callback URL in the following format:
code language-none https://'[server]:[port]'/libs/fd/fdm/gui/components/admin/fdmcloudservice/createcloudconfigwizard/cloudservices.html
Where server and port refer to the hostname and port number for the AEM Forms Server.
-
While creating the connected Salesforce application, specify
full
andoffline_access
as the values for the OAuth scope. -
Take a note of the values for the client ID (referred to as Consumer Key) and client secret (referred to as Consumer Secret) for the connected application.
Perform the following steps to configure the Salesforce cloud service:
-
On AEM Forms author instance, navigate to Tools
-
Select the folder name, select Salesforce Cloud Config, and select Properties.
-
In the Authentication Settings tab:
- Specify the Salesforce Domain URL in the Host field. For example, [Domain-name].my.salesforce.com.
- Specify the client ID (referred to as Consumer Key) and client secret (referred to as Consumer Secret) for the connected application.
- Specify full offline_access (
full
andoffine_access
values separated by a space) in the Authorization Scope field. - Select Connect to OAuth. You are redirected to Salesforce login page.
- Log in with your Salesforce credentials and accept to allow the cloud service configuration to connect to Salesforce service. If the connection is successful, you are redirected to the Salesforce cloud service configuration page, which displays a success message.
-
Select Save & Close to complete the configuration setup.
Access out of the box Salesforce Form Data Model (FDM)
A Salesforce Form Data Model (FDM) is available out of the box on the AEM Forms Server after you set up a development project for Forms based on Experience Manager archetype.
To access the Form Data Model (FDM):
- Navigate to Adobe Experience Manager > Forms > Data Integrations.
- Select the folder name, select the Salesforce Data Model, and select the Edit
After configuring the Salesforce Cloud Config service, you can integrate adaptive forms with out of the box Salesforce Data Model.