Re: Custom Activity Update Rest API

Anonymous
Not applicable

Hi,

I working an custom activity through rest API.  Add Custom Activities » Marketo Developers

But I am not sure what is "leadId". When i checked my lead details,the lead ID is empty. How can i update the custom activity?

Also I am not sure what is "activityTypeId".

14 REPLIES 14
Anonymous
Not applicable

Hello,

You can find that info here Get Activity Types » Marketo Developers

Anonymous
Not applicable

I have gone through the link.

In My marketo datbase leadid is empty for an email address. how can i update activity for that lead?

SanfordWhiteman
Level 10 - Community Moderator

Lead ID != Email.

All leads have an ID.

Look in the URL on the Lead Detail page.

Anonymous
Not applicable

lead id empty.png

I have checked  the lead id in marketo. it shows the mpty value. Please refer the screenshot. Also it is not integrated with CRM.

SanfordWhiteman
Level 10 - Community Moderator

What is the URL of that page?

Anonymous
Not applicable

Hi,

I tried to update the activity. It shows me the error Activity type id '1001' not found". I am using PHP.

Any suggestions?

SanfordWhiteman
Level 10 - Community Moderator
Anonymous
Not applicable

Hi,

Thank you for the answers.

i checked the activity types.      i tried to update "visits web page". it shows me an error "Invalid activity type id '1".

any Suggestions?

Anonymous
Not applicable

This is no longer valid after the latest fall release, I had a long discussion with Marketo Customer Support and the short answer is that they do not support adding activities using the REST API. (they did before).  Notice it says "custom" activities on Add Custom Activities » Marketo Developers , this means it is not possible to create normal activities, only "custom" ones.  You need to contact Marketo to add them though, you cannot do that yourself 😞

I still do not agree with Marketo that they removed this, but they do not acknowledge that. I still think its a bug if you look closely at error message "Invalid activity type id '1" , notice the ' before the 1.

I hope this helps you

Anonymous
Not applicable

Hi, May i know why the stopped "support adding activities using the REST API". I sthere any security reason?

SanfordWhiteman
Level 10 - Community Moderator

Well, for something like Visits Web Page there is a far more scalable API anyway, especially if you're going to have 1:many lead:activities in a given day -- the Munchkin API.

Anonymous
Not applicable

That is correct, but if you want to track other activity types and Munchkin is not an option the REST API fails to give support for this. In our case its Java backend which uses the REST API to add the activities.

SanfordWhiteman
Level 10 - Community Moderator

When is the Munchkin endpoint not an option? Anything that can do REST can use Munchkin.

Anonymous
Not applicable

Thank you. I find it in the URL.  leadDatabase/loadLeadDetail?leadId=xxxxxxxxxx

Great. Thank  you very much. Thank you.