Our invocable method allows you to automatically send a Multi Carrier label via email as an attachment.
This only works when used in conjunction with our Invocable - Create Shipment method.
First create a Process Builder Process by going to Setup > Create > Workflow & Approvals > Process Builder and click the New button.
Give the process a name, description and choose to start the process when "A record changes".
Next, click "Add Object", choose the Shipment object and we want to start the process "when a record is created or edited".
Click Save and your screen will look like so:
Next we select "Add Criteria".
On the right hand side set the Condition Field to be "Shipment Processing Completed",
and the value we are looking for to be True.
We also need to check the checkbox under advanced to execute the actions only when specified changes are made to the record.
You should finish with a screen like so:
The 2nd way to be able to access scheduled actions is to go back a few steps and change the process to start "only when a record is created." The advanced criteria option to execute actions only when specified changes are made to the record won't be available or necessary.
Click Save, and click "Set Schedule", input 0 Hours After Last Modified Date or you can select Created Date if you chose to run the process only when a record is created.
Click save, and click "Add Action", set the Action Type to be "Apex", and the Apex Class to be "Send Labels to Email":
You will then need to set the Apex variables. There is only one to set.
Choose the Type "Field Reference", and select "Record ID" from the field dropdown.
Your screen will now look like so:
Click Save, and then activate the Process Builder process.
You can now test this procedure.
Create a Shipment, using the invocable method we have created previously.
The email gets sent to either the sender email address or recipient email address. To set which one it gets sent to, please edit the Shipmate Preference and edit these fields:
Please contact us using the icon to the bottom right of this screen if you have any queries, and we will be glad to help.