简体   繁体   English

使用SOAP客户端从PHP在Dynamics CRM上创建用户帐户

[英]Creating a User Account on Dynamics CRM from PHP using SOAP client

I am writing a PHP code that will create a User Account on Microsoft Dynamics CRM 4 API using the SOAP client. 我正在编写一个PHP代码,它将使用SOAP客户端在Microsoft Dynamics CRM 4 API上创建一个用户帐户。 In API's fieldset there are many types of fields among the required fields (strings, boolean, lookup and picklist). 在API的字段集中,必填字段中有很多类型的字段(字符串,布尔值,查找和选择列表)。 So I'm sending the request with values for these fields. 因此,我正在使用这些字段的值发送请求。 All the fields are handling by CRM server except those fields which's types are "picklist". 除了那些类型为“ picklist”的字段外,所有字段均由CRM服务器处理。 They are coming to server blank. 他们即将服务器空白。 I can't find out why. 我不知道为什么。 Please help with syntax and etc. to create a user on CRM containing a picklist type field. 请提供语法等方面的帮助,以在CRM上创建一个包含选项列表类型字段的用户。

Are you using the Picklist class when setting your attribute? 设置属性时是否在使用Picklist类?

Eg (Taken from Microsoft Forums ): 例如(摘自Microsoft论坛 ):

DynamicEntity entity = new DynamicEntitty("name of your entity");
entity["picklist field"] = new Picklist(<integer value of picklist>);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM