Is it possible to call a web service from a "CF"?

Using LET and possibly something like EVALUATE(), is it possible to set a variable in a CF that is the return value from a web service (REST GET) call?

It would be nice to be able to better encapsulate web service calls like other functions rather than using the verbose INSERT FROM URLs, if possible.

Thanks in advance.

I would encapsulate this using scripts and not non-debuggable CFs. We routinely channel all API calls through a single script that does all the necessary logging into a central "api call log" table, to keep track of what URL and route we hit, with what payload, what the response is, response headers and trace.
You can't do all of that with CFs easily.


Excellent points. Cool approach.

Regarding CF, that’s what I thought more or less.