function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JessBJessB 

Trigger to put Address into USPS website and return zipcode?

Hi, 

 

I want to use a trigger to, upon save, the Lead's address will be sent to: https://tools.usps.com/go/ZipLookupResultsAction!input.action?resultMode=0&companyName=&address1=1600+Pennsylvania+Ave&address2=&city=Washington+DC&state=DC&urbanCode=&postalCode=&zip=20500

... (with the "address1" being the street field in Salesforce, "city" is city, "state" is State/Province, and "postalCode" is Zip/Postal Code in SF), and the website will return the +4 digits to the 5-digit zip code that was entered into SF.

 

Upon acquiring the result from this Website, the trigger needs to take the entire 9-digit code and replace the 5 figit code in salesforce with this value.

 

Is this something someone can easily create for me? :-)