I want to add an outbound activity via REST API | Community
Skip to main content
September 18, 2014
Solved

I want to add an outbound activity via REST API

  • September 18, 2014
  • 3 replies
  • 3480 views
Hi everyone!

I want to add an outbound activity from another system to Marketo activity log via REST API.
I looking for which API call is need.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kenny_Elkington
Hi Takehiro,

Currently this is not directly supported.  The common method to do this is to have a campaign in Marketo set up to be requested via the Campaign is Requested trigger.  In the flow of the campaign you have an Interesting Moment flow step containing a my token. You would then use the Request Campaign call to request this campaign for your desired record, and write a custom value into the token.

3 replies

Kenny_Elkington
Adobe Employee
Kenny_ElkingtonAdobe EmployeeAccepted solution
Adobe Employee
September 18, 2014
Hi Takehiro,

Currently this is not directly supported.  The common method to do this is to have a campaign in Marketo set up to be requested via the Campaign is Requested trigger.  In the flow of the campaign you have an Interesting Moment flow step containing a my token. You would then use the Request Campaign call to request this campaign for your desired record, and write a custom value into the token.
September 10, 2015

Hello Kenny,

I have a similar use case where i want to create a custom activity and add that to leads activity log.

I see this post is from last year, by chance is there is better way to implement this use case using rest api?

Thanks

Siddarth

Kenny_Elkington
Adobe Employee
Adobe Employee
September 10, 2015
December 6, 2014
Thank you Kenny!
I'm done.
 
I found some JSON mistakes at REST Request Campaign example request.
http://developers.marketo.com/documentation/rest/request-campaign/
I fixed. see below
{
   "input":
      {
         "leads" : [
            {
               "id" : 12234,
            },
            {
               "id" : 12235,
            }
         ],
         "tokens" : [
            {
               "name": "{{my.message}}",
               "value": "Updated message"
            },
            {
               "name": "{{my.other token}}",
               "value": "Value for other token"
            }
         ]
      }
}
Kenny_Elkington
Adobe Employee
Adobe Employee
December 8, 2014
Good catch on that comma, Takehiro.  I'll let the right people know.