SF-to-M: block reverse sync

By the default our module push to the Magento all entities you choose on the sync settings page: https://technweb.atlassian.net/wiki/spaces/IWS/pages/81690625#SalesforcetoMagento2syncsetup-STEP7-EstablishingtheConnectionwithMagneto . Once you save entity - our module catch this action and send update to the Magento.

You may need sync to the Magento only some specific entities. To implement this logic you need to create appropriate Salesforce Flow.

Follow our steps:

  1. Open a Flow list in the Salesforce. https://help.salesforce.com/s/articleView?id=sf.flow.htm&type=5

  2. Create a new Record-Triggered Flow:

  3. Put the Flow trigger details:

    1. Choose entity type you want to filter

    2. Choose the “A record is created or updated

    3. Define a condition you want to skip sync, in my example I want to skip Orders with empty MagentoId data

    4. Choose the “Fast field update

       

    5. Click the “Done“ button

       

  4. Click the “+“ to add a new Element.

     

  5. Choose the “Update Triggering Record“:

     

  6. Set the Element Label, API Name. Add the Set field values as it show on the screenshot:

     

  7. Click the “Done

  8. Save Flow and Activate it.

 

That’s it! This flow will avoid order sync from the Salesforce according to condition you defined in the step #3.c

 

 

 

https://help.salesforce.com/s/articleView?id=flow_builder.htm&language=en_US