Campaign Request "trigger needed error" | Community
Skip to main content
July 22, 2014
Solved

Campaign Request "trigger needed error"

  • July 22, 2014
  • 6 replies
  • 1683 views

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)

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
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
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.

6 replies

Kenny_Elkington
Adobe Employee
Adobe Employee
July 22, 2014
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.
July 22, 2014

Hi Kenny,

This is the request that I am using:

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

Thanks,
 

Dan

Kenny_Elkington
Adobe Employee
Kenny_ElkingtonAdobe EmployeeAccepted solution
Adobe Employee
July 22, 2014
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.
July 22, 2014

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
Adobe Employee
Adobe Employee
July 22, 2014
Hey Dan,

That's an unhandled error, I would need to see the full request in order to help diagnose that.
July 22, 2014

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