Brian Dunning's FileMaker Custom Functions

Fedex_Country ( Country )

Converts country name into the two character country code used by FedEx

  Average rating: 4.1 (37 votes) Log in to vote

Yvonne Dutreaux   Yvonne Dutreaux
Cordblood Registry

Share on Facebook Share on Twitter

  Sample input:
Fedex_Country ( "United States" )
Fedex_Country ( "Fiji" )
  Sample output:
US
FJ

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

You have to convert long country names to 2 character codes to send data to the Fedex API.

If you use different long country names ex USA instead of United Statues then you can adjust the criteria to meet your needs.

If you only ship to certain countries, either move them to the top so the function doesn't have to evaluate as hard or remove the countries you do not ship to.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.