

# Configuring the connector for a Partner Central API integration
<a name="p-c-api-integration"></a>

The following sections explain how to configure the CRM connector for use with the AWS Partner Central APIs.

To create and manage opportunities in Salesforce, configure the CRM connector for use with a Partner Central API integration.

**Note**  
Managing leads requires an earlier CRM with Amazon S3 integration. For more information, refer to [Configuring the connector for a CRM with Amazon S3 integration](s3-config.md) later in this guide.

**Topics**
+ [Entering connection authentication details](#config-p-c-apis)
+ [Entering the system settings](#p-c-api-system-settings)
+ [Testing the connection](#p-c-apis-testing)
+ [Using flow templates](flow-templates.md)

## Entering connection authentication details
<a name="config-p-c-apis"></a>

Partners start the integration process by entering the details needed to connect to the Partner Central sales endpoint. Follow each set of steps in the order listed, and complete each set before proceeding to the next one.

**To enter connection authentication details**

1. In Salesforce, open the **AWS guided setup** tab. For information about opening that tab, refer to [Using guided setup](use-guided-setup.md) earlier in this guide. 

1. Expand **Step 1: AWS connection authentication details** and choose **Start.**

1. On the **Named credentials** page, choose **New earlier**. 

1. In the **New named credential** form, enter the values from the following table.     
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/partner-central/latest/crm/p-c-api-integration.html)

1. Choose **Save**. 

1. Return to the **AWSGuided setup** page. In the **Authentication details** section, choose **Review** and confirm the credentials. 

## Entering the system settings
<a name="p-c-api-system-settings"></a>

The following steps explain how to enter the correct system configuration settings for the integration.

1. In Salesforce, open the **AWS guided setup** tab. For information about opening that tab, refer to [Using guided setup](use-guided-setup.md) earlier in this guide. 

1. Expand **Step 2: System configuration settings** and choose **Start.** 

1. Locate **AWS Partner CRM Connector Settings**, and choose **Manage**. 

1. Choose **New**, then enter the values from the following table.     
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/partner-central/latest/crm/p-c-api-integration.html)

1. Choose **Save**. 

1. Return to the **AWS guided setup** page. In the **Authentication details** section, choose **Review** and confirm the credentials.

## Testing the connection
<a name="p-c-apis-testing"></a>

Before testing the connection, ensure that you have completed all the above steps.

**To test the AWS Partner Central API connection**

1. Expand **Step 4: Test configuration for Partner Central API integration**.

1. Choose **Test**.

If the connection succeeds, you receive a confirmation message.

# Using flow templates
<a name="flow-templates"></a>

Flow templates are pre-built Salesforce flows that integrate Salesforce with AWS Partner Central using the AWS Partner Central API integration method. These templates include data synchronization, field mapping, and error handling configurations.

## Available templates
<a name="available-templates"></a>

**Unified Standard-ACE Opportunity Sync Flow Template**

The Unified Standard-ACE Opportunity Sync flow template maps Salesforce Standard Opportunity fields to ACE Opportunity fields, converts state and country formats, and prevents duplicate entries. It includes default values for required fields.
+ Revenue, close dates, and next steps are synchronized between Salesforce and AWS Partner Central.
+ By default, synchronization is triggered when "Create ACE" is added to the opportunity description. You can modify this trigger mechanism by using a checkbox or button.
+ This template provides a foundation for developing flows that align with your business requirements and field mappings.
+ This template is for use with AWS Partner Central API integration only and is not compatible with other integration methods.

Find this template in Salesforce Flow Builder by searching for "Unified Standard-ACE Opportunity Sync Flow Template".

**Prerequisites**

This template requires an active AWS Partner Central API integration. You must have appropriate permissions in Salesforce and configured fields in both systems. Familiarity with Salesforce Flow and AWS Partner Central API is recommended.

**Accessing the template**

To locate the flow template:

1. In your Salesforce org, choose **Setup**.

1. Search for **Flows**.

1. On the Flows page, search for the "Unified Standard-ACE Opportunity Sync Flow" template.

Create a copy of the template to customize for your requirements. Test modifications in a sandbox environment before deploying to production.

**Key features**

The template includes field mapping between Standard Opportunity and ACE Opportunity objects, state and country format conversion, and duplicate entry prevention. You can configure custom triggers and default value handling for required fields.

**Implementation considerations**
+ Follow best practices when customizing flow templates.
+ Test modifications and consider impact on existing processes.
+ Common customizations include adding custom fields or adjusting trigger mechanisms.
+ Test thoroughly in a sandbox environment before deploying to production.
+ Consider performance implications when dealing with large data volumes or complex business logic.