我有几个字段,我很难设置REST API。
第一个是Assigned To字段。我正在尝试将assigned_user_id
设置为ID
模块中用户的Users
,但它无效。我错过了什么?
我也无法设置日期。预期的格式是什么?我已经尝试了时间戳,但他们也没有。
这是我的数组:
$args = array(
array("name" => "installation_or_service_c", "value" => 'Service'),
array("name" => "dealerconsumer_c", "value" => "Consumer"),
array("name" => "first_name", "value" => 'Test'),
array("name" => "last_name", "value" => 'Testerson'),
array("name" => "phone_home", "value" => '111-111-1111'),
array("name" => "email1", "value" => 'name@domain.com'),
array("name" => "status", "value" => "Consumer IN PROCESS"),
array("name" => "primary_address_street", "value" => '123 Main Street'),
array("name" => "primary_address_city", "value" => 'Springfield'),
array("name" => "primary_address_state", "value" => 'MA'),
array("name" => "primary_address_postalcode", "value" => '11111'),
array("name" => "primary_address_country", "value" => 'United States'),
array("name" => "description", "value" => ''),
array("name" => "send_packet_c", "value" => 'Yes'),
array("name" => "mailing_list_c", "value" => 'No'),
array("name" => "consumer_referral_status_c", "value" => 'In Process'),
array("name" => "assigned_user_id", "value" => '122dc5a7-e2a5-1ad1-ee66-50699ac08d5a'),
array("name" => "salesman_number_c", "value" => '01'),
array("name" => "dealer_assigned_date_c", "value" => '06/13/2013')
);
这些项目是最后一项,也是最后一项。
答案 0 :(得分:1)
排序好了。分配给提交的问题是我自己的错,使用了错误的GUID给用户。日期为欧洲格式,特别是YYYY-MM-DD