

# Finalize setup and configuration within Salesforce
<a name="upgrade-phase3-salesforce-config"></a>

The remaining activities to upgrade the connector are performed by a **Salesforce Administrator**. Complete activities in Sandbox first, test, then move to Production.

## Install the latest version of the CRM Connector
<a name="upgrade-install-latest-connector"></a>

Visit the Salesforce AppExchange and [download the latest version](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N4V00000IYf0nUAD&tab=e) of the AWS Partner CRM Connector.

## Complete the guided setup in the CRM Connector
<a name="upgrade-guided-setup"></a>

Follow [these instructions](https://docs.aws.amazon.com/partner-central/latest/crm/p-c-api-integration.html) to configure the settings within the AWS Partner CRM Connector.

## Review and adjust permission sets
<a name="upgrade-permission-sets"></a>

With synchronous capability via API, you can now apply permission sets to users (an ACE User) or user groups (for example, all Partner Sales) to enable co-sell functionality.
+ You **no longer need** the `APN Integration User` permission set.
+ Use the `APN Business Admin` permission set for the user that runs the ACE Integration.
+ Use the `AWS Marketplace Admin` permission set for the user that runs the Marketplace Integration.

For more information, see [permission sets details](https://docs.aws.amazon.com/partner-central/latest/crm/crm-connector-pemissions-sets.html).

## Review and disable schedules for Amazon S3
<a name="upgrade-disable-schedules"></a>

With the API-based approach, there is **no longer any need for scheduled jobs** – the integration runs in real time based on when updates are made to the ACE Opportunity.

**To disable scheduled jobs**

1. Navigate to the **Schedules** tab within the AWS Partner CRM Connector app.

1. Choose **Deactivate All Jobs** and then choose **Deactivate** again.

It is also recommended to **delete** the scheduled records within this tab. To remove any remaining APN scheduled jobs from Setup:

**To remove APN scheduled jobs from Setup**

1. Navigate to **Setup**. Search for "Scheduled" and select the **Scheduled Jobs** menu item.

1. Review the list for any jobs related to an APN sync. If found, choose the **Del** link to delete them.

**Note**  
You can keep the `CustomLogInteractionBatch` job running. This is for AppExchange App Analytics and is still relevant for the API version of the connector.

## Review and adjust your mappings
<a name="upgrade-adjust-mappings"></a>

The "Sync with AWS" fields on the standard opportunity and the ACE Opportunity are **no longer leveraged** in the integration. Instead, changes are triggered automatically based on your mapped object.

Key points:
+ The **ACE Opportunity object** is recommended as a landing area within your Salesforce org – it matches the AWS opportunity data points in Partner Central and allows auto-mapping fields.
+ If you were already using the ACE Opportunity for your integration mapping, no additional changes should be required.
+ Partners do not need to perform any manual configuration for ACE Opportunity objects – all necessary mappings are available out-of-the-box.

For more details, see the [integration mapping section](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/mappings). The ACE Opportunity data model is available on [GitHub](https://github.com/aws-samples/partner-crm-integration-samples/blob/main/opportunity-samples/ACE-Data-Model.xlsx).

The latest connector version includes a **flow template** to help map your standard opportunity to the ACE opportunity for auto-creation and auto-updates. For more detail, see [flow templates](https://docs.aws.amazon.com/partner-central/latest/crm/flow-templates.html).

## Review and add required fields and buttons
<a name="upgrade-required-fields-buttons"></a>

The connector has introduced new fields and buttons since version 3.0. Some fields are required for opportunity submission and must be added to your ACE Opportunity lightning record page.

1. Review [all fields added after Connector Version 3.0](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/upgrade#all-fields-added-after-connector-version-3.0) and add them to your ACE Opportunity page layout as indicated.

1. Review [current ACE Opportunity features](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/buttons) to understand available buttons and related lists.

1. Review [the configurations required to enable these features](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/upgrade/upgrade) and complete the steps for your org.

## Deactivate legacy validation rules
<a name="upgrade-deactivate-validation-rules"></a>

Several legacy validation rules must be deactivated and others must remain active. Review the full list and ensure each validation rule in your org matches the expected status before proceeding. See [this section](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/upgrade/upgrade#disable-validation) to walk through the necessary steps.

The following table lists the validation rules and their expected status.


**Validation rules status**  

| Rule name | Error location | Status | 
| --- | --- | --- | 
| ACEOpp\_PreventUpdatesWhenPOSubmitted | Top of Page | Deactivate | 
| ACEOppNew\_CustomerBusinessProblemLength | Customer business problem (legacy field) | Deactivate | 
| ACEOppNew\_CustomerBusinessProblemNew | Customer business problem | Deactivate | 
| ACEOppNew\_MandatoryclosedLostReason | Closed lost reason | Active | 
| ACEOppNew\_MandatorycompetitiveTrackingOt | Competitive tracking other | Active | 
| ACEOppNew\_MandatorycontractEndDate | Contract end date | Active | 
| ACEOppNew\_MandatorycontractStartDate | Contract start date | Active | 
| ACEOppNew\_MandatorycustomerCompanyName | Customer company name | Active | 
| ACEOppNew\_MandatorycustomerSoftwareVal | Customer software value | Active | 
| ACEOppNew\_MandatorycustomerSoftwareValue | Customer software value currency | Active | 
| ACEOppNew\_MandatorycustomerWebsite | Customer website | Active | 
| ACEOppNew\_MandatoryIndustryOther | Industry other | Deactivate | 
| ACEOppNew\_MandatoryisMarketingDevelopmen | Is marketing development funded | Active | 
| ACEOppNew\_MandatoryIsOppFromMarketingAct | Is opportunity from marketing activity | Active | 
| ACEOppNew\_MandatoryNullawsSFCampaignName | AWS Salesforce campaign name | Active | 
| ACEOppNew\_MandatoryNULLisMarketingDev | Is marketing development funded (null check) | Active | 
| ACEOppNew\_MandatoryNullmarketingChannel | Marketing activity channel | Active | 
| ACEOppNew\_MandatoryNullmarketingusecase | Marketing activity use case | Active | 
| ACEOppNew\_MandatoryotherSolutionOffered | Other solution offered | Active | 
| ACEOppNew\_MandatoryparentOppId | Parent opportunity ID | Deactivate | 
| ACEOppNew\_MandatorypartnerAcceptanceStat | Partner acceptance status | Deactivate | 
| ACEOppNew\_MandatoryprocurementType | Procurement type | Active | 
| ACEOppNew\_MandatoryrejectionReason | Rejection reason | Active | 
| ACEOppNew\_MandatorySalesActivities | Sales activities | Active | 
| ACEOppNew\_MandatorySolutionOffered | Solution offered | Deactivate | 
| ACEOppNew\_MandatoryState | State | Deactivate | 
| ACEOppNew\_PostalCode | Top of Page (postal code) | Deactivate | 
| ACEOppNew\_PreventUpdatesWhenPOSubmitted | Top of Page (prevent updates) | Deactivate | 
| ACEOppNew\_RequireFieldsForAWSReferral | Top of Page (AWS Referral required fields) | Active | 
| ACEOppNew\_TargetCloseDate | Top of Page (target close date) | Active | 

## Deactivate legacy ACE custom flows
<a name="upgrade-deactivate-legacy-flows"></a>

Ensure the following flows have been **deactivated**:
+ Sync ACE Opportunity to Partner Central API
+ Private Offer Lookup
+ APN Synchronization Failure Notification
+ Updating Private Offer field On ACE Opportunity
+ Updating Ace opportunity field on Sync Log Detail Record
+ Unified Standard-ACE Opportunity Sync Flow (template)

## Test data flow and mapping to ensure API sync
<a name="upgrade-test-data-flow"></a>

Test your process to ensure no issues before moving the integration to production. The following resources can help with testing:
+ [Testing from the settings](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/config-int#task-3-:-test-the-setup)
+ [Testing from an ACE Opportunity](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/mappings#task-3-:-test-the-integration) (Do not submit test opportunities in production)
+ [Testing from your standard opportunity](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/flows#task-3-:-test-the-flow)

If any issues arise, [troubleshoot](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/config-int#task-4-:-troubleshooting) by reviewing the ACE Sync Logs and the AWS Marketplace Notifications.

## Complete backfill of opportunities from AWS to Salesforce
<a name="upgrade-backfill-opportunities"></a>

Run a backfill process to ensure complete data within your Salesforce org and avoid disruption in future updates. The backfill process refreshes your Salesforce data with Partner Central data.

Key notes:
+ The `awsapn__Last_Modified_Date__c` field on the ACE Opportunity needs to match the Last Modified Date in Partner Central for future updates to sync – this is a **new field that did not exist in the Amazon S3 version**.
+ The backfill process can pull all AWS opportunities into Salesforce, or refresh only ones that already have an APN CRM ID. Additional filters can be set to define your dataset.

**Before running the backfill:**
+ Deactivate the "Sync ACE Opportunity to Partner Central API" flow if active.
+ Uncheck the "Auto Share to AWS" option in the AWS Partner CRM Connector Settings custom setting.
+ Re-enable "Auto Share to AWS" **after** the backfill is complete, as this drives the syncing automation.

**Note**  
Review Salesforce governor limits and process in batches or after-hours as needed.

For more details, follow the [Backfill Opportunities from Partner Central](https://catalog.us-east-1.prod.workshops.aws/workshops/ea2a0910-436a-4a65-82c4-725657009443/en-US/aws-partner-crm-connector/using-the-ace-integration/backfill) section.

To receive guided support during the backfill process, open a case in Partner Central: **Partner Central** → **Support** → [Open New Support Case](https://partnercentral.awspartner.com/partnercentral2/s/newsupportcase) → **CRM Integration**.