Brian Dunning's FileMaker Custom Functions


Error Detail for integration with Letterstream api

  Average rating: 5.0 (1 vote) Log in to vote

Robert D Trammel   Robert D Trammel - Show more from this author
Lucky Penny LLC

Share on Facebook Share on Twitter

  Sample input:
LSErrorDetail( -1 )
LSErrorDetail( -200 )
  Sample output:
"Needs Attention"
"Successful preauth: Please resubmit authcode to complete order"

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

This may be a very niche corner of the market, but I have a customer who utilizes Letterstream to send a lot of physical mail. Their API is available only to customers, and as such the documentation can be difficult to navigate at times. I wrote this custom function in order to return more actionable error detail from failed api calls. Their original HTML table of codes consisted of three columns, Code, Name, and Description. I wrote a little while loop to build this JSON structure for quicker reference.



Log in to post comments.


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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: