【问题标题】:Update Marketo lead's membership->progressionStatus using REST API使用 REST API 更新 Marketo 潜在客户的会员资格->progressionStatus
【发布时间】:2016-11-15 17:02:07
【问题描述】:

我正在尝试根据自己的需要调整 https://github.com/Marketo/REST-Sample-Code/blob/master/php/LeadDatabase/Leads/SyncLeads.php。我希望能够使用 REST API 将潜在客户的状态从“已注册”更新为“已参加”。 (当有人登记参加活动时,Marketo Events 应用程序会执行此操作。)

但是,当我尝试发送类似以下内容时:

{"input":[{"email":"asdfasdf@qwerqwer.org",
           "membership":{"progressionStatus":"Attended"}}]}

我回来了:

{"requestId":"168be#15868ee5bff",
 "result":[{"status":"skipped","reasons":[
     {"code":"1006","message":"Field 'membership' not found"}]}],
 "success":true}

我理解这个消息很好——“会员”不是一个字段,因此不能以这种方式更新。但是还有其他方法可以使用 API 更新 progressionStatus 吗?

【问题讨论】:

    标签: rest marketo lead


    【解决方案1】:

    您需要查看该潜在客户的计划成员资格 - 请参阅此方法了解更多信息:http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Leads/changeLeadProgramStatusUsingPOST

    【讨论】:

    • 文档似乎不完整 -- 请参阅 changeLeadProgramStatusRequest?没有关于 LeadLookupInputData 应该是什么样子的指导。
    【解决方案2】:

    尝试使用这种格式:

    {
        'status': 'Member',
        'input': [
            {'id': 23},
            {'id': 445}
        ]
    }
    

    您必须使用 Marketo Lead ID(不是电子邮件),并且每次 API 调用只能指定 1 个状态值。最大批量大小为 300 个潜在客户 ID。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多