HTTP Callouts

This demonstration shows how to call an exchange rates API using template strings, variables, and JSON traversal. It targets the update of a price list by calculating prices based on a monthly average exchange rate using Streamscript. The process involves setting start and end dates for a month, building a URL with merge fields, and using an HTTP GET command to fetch and return exchange rates from an endpoint.

 


 

An updated API endpoint is available: https://open.er-api.com/v6/latest/USD

 

Getting started with Streamscript
Install from the Salesforce AppExchange
Package install link: /packaging/installPackage.apexp?p0=04tGA000005tWe3