This recipe reads data from another service on a schedule and stores it in Tape. The example fetches a daily exchange rate and writes it to every open deal in euros. It's meant to keep numbers in your CRM current without anyone typing them in.
What you'll need
A
Dealsdatabase app with these fields:Currency, a single select field with the optionEURExchange rate, a number fieldStatus, a status field with the optionOpenAn API that answers a
GETrequest with the value you need, for examplehttps://api.acme.com/rates?base=USD&symbol=EUR. If the API needs a key, add it underShow headers→Add headerinSend HTTP request, or useSend API requestwith a saved connection.
Build the automation
Open the
Dealsapp and click the automations icon at the top right (Create and view automations).Select
New automation, then selectOn a scheduled time or interval.In the trigger, select
One timeand chooseEvery day, then pick1 day. Select8:00 AMto set the time.Select
Add action→Send HTTP request. Keep the methodGETand enter the address inURL. The response is saved inHTTP response.Select
Add action→Search for records. Choose theDealsapp, selectAdd filter, and addWhereCurrencyIsEUR. Add a second condition forStatusIsOpen.Select
Add action→Update collected. Tape preselectsDeals, the records thatSearch for recordscollected.Select
Add fieldand chooseExchange rate. SelectCalculationinstead ofSet value, insertHTTP response, and add the name of the value, for example.rate.Select
Create automation.
Note:
Pick one value of the answer.
HTTP responseholds the whole answer of the service. Step 7 picks the one value you need, so check the name of that value in the API's documentation.Keep it short. A run stops after three minutes, and a search returns at most 1,000 records. For more records, split the work. Learn how to update many records in batches →
Public hosts only. Requests come from Tape's own IP addresses, and private or internal hosts are refused. Learn more about IP addresses →
The result
Every morning, each open euro deal gets the latest exchange rate in Exchange rate. A calculation field in the database app can use it to show the amount in euros.
Variations
Use
POSTwith a request body to send records to another service.Add
Conditional actionsafter the request to stop when the service answers with an error.Run the automation every hour for values that change quickly.
Learn more
FAQs
Can I send data from Tape to the other service?
Can I send data from Tape to the other service?
Yes! Use Send HTTP request with POST, and put record values in the request body. Learn more about sending requests →
Why didn't the records change?
Why didn't the records change?
If the records didn't change, it could be because:
The search found no records. Check its filters.
The request failed. Open the run history and check the
Send a HTTP requeststep.The automation is
Paused.
Are you a developer using the Tape API for automations?
Are you a developer using the Tape API for automations?
The automation API has its own documentation for developers. Full reference: http_call in the developer docs →
Still have more questions? Find answers and get help from community experts in the Tape community →.
