我正在尝试将线索和查询发送给followupboss crm,这是我用来连接到followupboos rest API https://github.com/FollowUpBoss/fub-api-examples
的php代码一切正常,现在我必须在代码中添加行动计划json字段。但它不起作用,
这是我的代码:
$data = array(
"source" => $propertyname . "-Landing page",
"type" => "Property Inquiry",
"pageTitle" => $propertyname,
"pageUrl" => $prpurl,
"pageDuration" => "",
"message" => "Viewed: " . $propertyname,
"person" => array(
"firstName" => $fname ,
"lastName" => $lname ,
"emails" => array(array("value" => $email)),
"phones" => array(array("value" => $phone)),
"assignedTo" => "Hossein Shahi",
"addresses" => array(
// Address 1
array(
"street" => "322 S Broadway"
)
// If there are more than 1 address, add here
,array(
"street" => ""
)
),
"tags" => array(),
),
"property" => array(
"street" => $propertyname,
"city" => "",
"state" => "",
"code" => "",
"mlsNumber" => $mlscnm,
"price" => $prpprice,
"forRent" => false,
"url" => $prpurl,
"type" => $prptype,
"bedrooms" => $prpbeds,
"bathrooms" => $prpbaths,
"area" => $prparea,
"lot" => 0
),
"actionPlans" => array(
"status" => "Active",
"name" => "Buyer - Pre Construction",
"id" => ""
)
);
答案 0 :(得分:0)
actionPlans
API创建的新潜在客户, /events
无效。这就是为什么它不起作用。
行动计划created in the UI会在新的潜在客户进入时自动触发。使用该应用将行动计划与受让人关联。这样您才能确保针对潜在客户和负责人员的行动计划生效。
或者,您可以对/actionPlansPeople
进行第二次API调用,以启用特定受让人的行动计划。分配给该用户的新项目将使用该行动计划。