Our invocable method allows you to automatically send a FedEx label via email as an attachment.

This only works when used in conjunction with our Invocable - Create Shipment method.

First create a Process Builder Task 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 FedEx 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 add a second row to ensure an email only gets set out when the FedEx shipment is first created.
We do this by looking for this same field to have "Is changed" = True.

You should finish with a screen like so:

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 task.

You can now test this procedure.

Create a FedEx shipment, using the invocable method we have created previously.

Troubleshooting
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 FedEx Preference and edit this box:

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.

Did this answer your question?