SF-to-M: block reverse sync
By the default our module push to the Magento all entities you choose on the sync settings page: Salesforce to Magento 2 sync setup | 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:
Open a Flow list in the Salesforce. https://help.salesforce.com/s/articleView?id=sf.flow.htm&type=5
Create a new Record-Triggered Flow:
Put the Flow trigger details:
Choose entity type you want to filter
Choose the “A record is created or updated“
Define a condition you want to skip sync, in my example I want to skip Orders with empty MagentoId data
Choose the “Fast field update“
Click the “Done“ button
Click the “+“ to add a new Element.
Choose the “Update Triggering Record“:
Set the Element Label, API Name. Add the Set field values as it show on the screenshot:
Click the “Done“
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