SOLVED

I want to add an outbound activity via REST API

Go to solution
Anonymous
Not applicable

I want to add an outbound activity via REST API

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.
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Kenny_Elkington
Marketo Employee

Re: I want to add an outbound activity via REST API

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.

View solution in original post

6 REPLIES 6
Kenny_Elkington
Marketo Employee

Re: I want to add an outbound activity via REST API

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.
Anonymous
Not applicable

Re: I want to add an outbound activity via REST API

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
Marketo Employee

Re: I want to add an outbound activity via REST API

Yes.  You can follow these examples: http://developers.marketo.com/blog/sending-transactional-emails-with-the-marketo-rest-api-part-1/  http://developers.marketo.com/blog/sending-transactional-emails-with-the-marketo-rest-api-part-2-cus... These are using Email campaigns as an example, but the same patten will work for interestin moments.

Anonymous
Not applicable

Re: I want to add an outbound activity via REST API

Thanks Kenny.

Anonymous
Not applicable

Re: I want to add an outbound activity via REST API

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
Marketo Employee

Re: I want to add an outbound activity via REST API

Good catch on that comma, Takehiro.  I'll let the right people know.