AuthorChris Hall

Request UPS rate for shipment from the Account Object

request ups rates from the account object

Today we will show you how you can get UPS rates for a shipment and add the users choice back onto the account object. The first thing we need to do is set the “to” and “from” address of the shipment. In the code below we get the preference details to ship from and we get the ship to address details from the account object itself. We add all this information to a queuedShipment object. Note lines...

How to Merge two PDF Files on Salesforce

merge two pdfs in salesforce

Today’s blog post shows how easy it is to merge two or more PDF files to create a single PDF file on Salesforce. We use our own PDF merging solution which is hosted at pdfmerge.zenkraft.com, if you want to utilize this service please contact us. Lets look at the simple code snippet below that will merge two PDF files together: Lines 2-5: details the location of the two PDF files we need to...

Bulk Cancel UPS shipments

bulk cancel ups shipments

A quick code snippet for you today, if you want to cancel all UPS shipments that have not been picked up. Here is the code to run in Developer Console: Line 4 determines the shipments we want to set as cancelled. For this snippet we have decided to cancel all shipments older than UPS-Shipment-0000001000. Line 7 then uses our startMassShipmentCancelBatch process that goes through all the shipments...

Using Process Builder to Add FedEx Tracking Number to your Contact Object

process builder add tracking number

Todays blog post will show you how add the FedEx Tracking Number onto the Contact object after you have created a shipment. Firstly make sure you have the text field available on your contact object:   Next let’s create a Process Builder task to retrieve the tracking number once the shipment has been created. To access the process builder page, go to Setup > Create > Workflow &...

Using Process Builder to send a custom email after shipment creation

Here is a quick guide to show you how you can send an email to the recipient’s email address to let them know they shipment has been created and is being sent today, by using the integrated SalesForce Process Builder. First you need to set up a new Process Builder task. Go into Setup > Process Builder and click on the New button in the top right hand side of the page, and fill in the...

UPS Address validation on an Account

Todays blog post will show the code you need to validate an Account address via the UPS Address Validation call you can find in the UPS Shipmate app.   Firstly we will look at the Controller code, and we will explain how it works below:     Lines 7-12: This is where you specify the name of the Account object that you want to validate the address for.   Lines 14-27: We need to...

Create a button to replicate the Custom Address Source “New Shipment Functionality”

Today we will show you how to create a custom button on your object that does the same as the New Shipment button from your related list. The most usual use case for this is if you want to create 2 one click shipment buttons from a standard or custom object. One for a standard outbound shipment, and the other for a return shipment. For this demo we will use the standard Case object. The first...

Send an email template with a GIF attachment

Today we will show you how to send an email template with a GIF return label attached once a shipment is created from a Case. Before you can write any code you need to set up three things; Email template Notification checkbox Create a new lookup relationship from the UPS Shipment to the Case object First thing you need to do is create an email template. This you can do by going into Setup >...

Request FedEx rate for shipment from the Account Object

Today we will show you how you can get FedEx rates for a shipment and add the users choice back onto the account object. The first thing we need to do is set the “to” and “from” address of the shipment. In the code below we get the preference details to ship from and we get the ship to address details from the account object itself. We add all this information to a queuedShipment object. Note...