SOLVED

Campaign Request "trigger needed error"

Go to solution
Anonymous
Not applicable

Campaign Request "trigger needed error"

Hi,

I'm trying to run a Campaign request through the API.  As documented in the instructions I set:


campaign is requested ->web service API(see screen below)

http://i.imgur.com/nmRjqV3.png



I am still getting the following when I run a campaign request:

{"requestId":"174d#1475e3f5943","success":false,"errors":[{"code":"1003","message":"Trigger campaign needs to have a 'Campaign Requested' trigger"}

If I were to run a query on this campaign, I get the following result returned:
 

array(3) {
  ["requestId"]=>
  string(16) "23a7#1475e3f55aa"
  ["result"]=>
  array(1) {
    [0]=>
    array(8) {
      ["id"]=>
      int(2282)
      ["name"]=>
      string(22) "EB-CC0739 Portland, OR"
      ["type"]=>
      string(7) "trigger"
      ["programName"]=>
      string(22) "EM-CC0739 Portland, OR"
      ["workspaceName"]=>
      string(7) "Default"
      ["createdAt"]=>
      string(24) "2014-01-21T18:44:46+0000"
      ["updatedAt"]=>
      string(24) "2014-07-22T00:10:42+0000"
      ["active"]=>
      bool(false)
    }
  }
  ["success"]=>
  bool(true)
}



Any ideas?  I'm still a bit new to Marketo so maybe I'm missing a step or overlooking something?

Thanks and please let me know if you need more info.

Dan
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Kenny_Elkington
Marketo Employee

Re: Campaign Request "trigger needed error"

Ah I see now.  You need to activate the campaign before it can be requested via the API.  You can see in the get campaign response: ["active"] =  bool(false)  You'll need to go to the campaign in MLM and then go to schedule and activate the campaign.  Once you've done so, you can request this campaign.

View solution in original post

6 REPLIES 6
Kenny_Elkington
Marketo Employee

Re: Campaign Request "trigger needed error"

Hey Daniel,

Are you using /rest/v1/campaigns/2282/trigger.json as your URI?  If you could possibly provide a copy of the request that would be useful as well.
Anonymous
Not applicable

Re: Campaign Request "trigger needed error"

Hi Kenny,

This is the request that I am using:

rest/v1/campaigns/2282/trigger.json?access_token=******

Thanks,
 

Dan

Kenny_Elkington
Marketo Employee

Re: Campaign Request "trigger needed error"

Ah I see now.  You need to activate the campaign before it can be requested via the API.  You can see in the get campaign response: ["active"] =  bool(false)  You'll need to go to the campaign in MLM and then go to schedule and activate the campaign.  Once you've done so, you can request this campaign.
Anonymous
Not applicable

Re: Campaign Request "trigger needed error"

Hi Kenny,

Thanks for your reply.  I seem to be getting closer.  However, now I am getting a different error returned:

{"requestId":"f2ed#1475f1ecf8f","success":false,"errors":[{"code":"611","message":"System error"}]}

Any ideas?

Thanks,

 

Dan
 

Kenny_Elkington
Marketo Employee

Re: Campaign Request "trigger needed error"

Hey Dan,

That's an unhandled error, I would need to see the full request in order to help diagnose that.
Anonymous
Not applicable

Re: Campaign Request "trigger needed error"

Kenny,

Nevermind.  I'm not thinking today.  I was trying to add a lead that doesn't exist in our database.  I got it.

Thanks so much for your help!
 

Dan