Calling external services from a call scenario

There are 2 ways to integrate call scenario with external services:

  1. Making HTTP requests
  2. Sending e-mails using SMTP

 

HTTP requests

From the call scenario you can perform asynchronous HTTP requests. To do that, you should use the Net.httpRequest function. It supports both HTTP and HTTPS. Results obtained in callback can later be parsed as JSON or XML (using E4X).

Please note that if you make several requests at the same time, they will be executed consecutively rather than simultaneously.

 

Sending e-mails

You can send e-mails using your SMTP server from the call scenario. The function named Net.sendMail performs this action.

Please note that if you make several requests at the same time, they will be executed consecutively rather than simultaneously.