Send email notification for Invoice/Shipment by reverse sync

If you with to trugger Magento emails for Shipments/Invoices in your Salesforce org - follow our instruction below.

The example below describes algoritm for the Shipment object.

1. Enable “Asynchronous sending“ emails configuration: https://experienceleague.adobe.com/docs/commerce-admin/config/sales/sales-emails.html

NOTE: the described flow will take affect on new Shipments created after this option is enabled!

 

2. Create 2 fields for the Shipment object on the Salesforce side:

  • Send mail“ - checkbox type

  • Email sent” - formula field, type is a “text“. The formula should be:

IF(Send_mail__c, '', '1')

 

 

3. Regenerate WSDL file, upload it to the Magneto and refresh your store cache

https://technweb.atlassian.net/wiki/spaces/IWS/pages/251822299

 

4. On the Magento side map these 2 fields to the Magneto Shipment fields as it shown on my screenshot:

Don’t forget define the “Skip blank values“ to NO