Calling external APIs using Velocity Template Engine | Community
Skip to main content
August 18, 2015
Question

Calling external APIs using Velocity Template Engine

  • August 18, 2015
  • 3 replies
  • 2962 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

August 18, 2015

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
August 18, 2015

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

Webhooks are designed to enhance lead data from external sources.

Kenny_Elkington
Adobe Employee
Adobe Employee
August 18, 2015

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