Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Case description: you have some Magento Customer and it’s synced to the Salesforce as Contact + Account. At the some time you deside you need assign this custoemr to another Contact and Account, also all new order should go under this new Contact.

...

Challenge

Do you have a situation where you need to change which Salesforce Contact the customer in Magento is linked with? In addition, you want all new orders in Magento to be associated with the new Contact instead of the old one.

Solution

  1. In Salesforce

    1. Create a new Contact and Account in the Salesforce

  2. Assign existing Salesforce Order/Opportunity to this Account/Contact manually if you need it

  3. Open deprecated Salesfoce Contact, find the MagentoId field.
    1. (or identify an existing Account+Contact you want to use). (Lets call this Contact A).

    2. Manually assign existing Salesforce Orders and Opportunities to this Account+Contact. This will re-link all past order and opportunity records to the new Account+Contact. (this step is optional)

    3. Navigate to the old Salesforce Contact (lets call this Contact B)

      1. Get the value in MagentoId field from Contact B and move it to Contact A

        1. You may need make this field visible

    via Salesforce layouts.
    1. Copy value defined in this field and make it empty

    2. save changes

  4. Go to the new Salesforce Contact

    1. Put coppied value to the MagentoId field here

    2. save changes

  5. Go to the Magento Admin area

    1. Open the “General settings“ our module page

    2. Enable the “Developer Mode“ in the “Advanced settings“ section
        1. in the Contact layout (if you cannot find it).

      1. Make sure the MagentoId field on the Contact B is blank, and Contact A has the MagentoId field filled out.

  6. In Magento Admin

    1. Complete these steps if you do not see Salesforce ID Mappings menu item under Salesforce (main navigation)

      1. Navigate to Salesforce (main navigation) > General settings in Magento Admin

      2. Enable the Developer Mode under the Advanced settings (section)

      3. Refresh Magento cache

      4. A new

      1. Salesforce ID Mappings

      1. item should

      appears
      1. appear in the

      1. Salesforce

      1. menu after that

    2. Go to the “Navigate to

      1. Salesforce (main navigation) > Salesforce ID Mappings

    3. Find the deprecated Salesforce Ids (ContactId and AccountId) in this grid assigned to the “customer“ Magento Type

    4. Delete these deprecated SalesfroceIDs

...

        1. Use filtration on that page to find where

          1. Magento Type = Customer

          2. Magento Id equals the MagentoId from Contact A

      1. Delete two records that correspond with Account and Contact only (see the example blow)

        Image Added

Screencast (step by step)

...