AEM Forms 6.3
-
Login to AEM Forms using the https protocol
-
Navigate to cloud services by typing in https://<servername>:<serverport> /etc/cloudservices.html, For example, https://gbedekar-w7-1:6443/etc/cloudservices.html
-
Scroll down to “Form Data Model”.
-
Click on “Show Configurations”.
-
Click “+” to add new configuration
-
Select “Rest Full Service”. Provide meaningful Title and Name to the configuration. For instance,
- Name: CreateLeadInSalesForce
- Title: CreateLeadInSalesForce
-
Click “Create”
**In the next screen **
- Select “File” as the option for your swagger source file. Browse to the file you downloaded earlier
- Select Authentication Type as OAuth2.0
- Provide the ClientID and Client Secret values
- OAuth Url is - https://login.salesforce.com/services/oauth2/authorize
- Refresh Token Url - https://na5.salesforce.com/services/oauth2/token
- Access Toke Url - https://na5.salesforce.com/services/oauth2/token
- Authorization Scope: ** api chatter_api full id openid refresh_token visualforce web**
- Authentication Handler: Authorization Bearer
- Click on "Connect To OAUTH ".If everything goes well, you should not see any errors
Once you have created your Form Data Model using Salesforce, you can then create Form Data Integration using the Data Source that you have just created. The official documentation for creating Form Data Integration is here.
Make sure you configure the Form Data Model to include the POST service to create a Lead object in SFDC.
You will also have to configure Read and Write Service for the Lead object. Please refer to the screenshots at the bottom of this page.
After creating the Form Data Model, you can create Adaptive Forms based on this model and use the Form Data Model submission methods to create Lead in SFDC.