Calling external APIs using Velocity Template Engine

Anonymous
Not applicable

Calling external APIs using Velocity Template Engine

Hi,

I am from the Babajob Services Pvt. Ltd. marketing team here in Bangalore, India.

We are on our way to integrate Marketo with our product (Website and Mobile Web) and Salesforce CRM.

We have certain use cases wherein marketo will have to directly interact with our product DB and fetch in data and populate and personalize the email content.

Email scripting in marketo developer docs state about Velocity. Could you guys help me out with if, Velocity Template Engine can be used to call or trigger external REST API POST requests to grab the dynamic data ? If yes, it would be great if I could use some sample or snippet as an example.

Thank You All.

Regards,

Prabash Rath.

3 REPLIES 3
Anonymous
Not applicable

Re: Calling external APIs using Velocity Template Engine

Prabash Rath​ Good question. I moved your post to the Products and Support​ section of the site ---

This will help you get an answer faster since it's a product related question.

SanfordWhiteman
Level 10 - Community Moderator

Re: Calling external APIs using Velocity Template Engine

You don't use Velocity for this, you use Webhooks.

Webhooks are designed to enhance lead data from external sources.

Kenny_Elkington
Marketo Employee

Re: Calling external APIs using Velocity Template Engine

Our velocity implementation does not support outgoing requests at runtime.  You'll need to look into an alternative like Webhooks as Sanford suggested.