gpt4 book ai didi

php - Microsoft Dynamics crm api-在账户下创建联系人

转载 作者:行者123 更新时间:2023-12-02 19:41:00 25 4
gpt4 key购买 nike

尝试使用 api 在 Microsoft Dynamics crm 中创建联系人。

请求地址为https://alliedmodulartemp.api.crm.dynamics.com/api/data/v9.1/contacts

创建联系人时想要在帐户下设置联系人(即)想要设置 _parentcustomerid_value。

尝试使用以下格式:

URL:https://alliedmodulartemp.api.crm.dynamics.com/api/data/v9.1/contacts(POST)
input:
{
"firstname":"alrinmyjammy",
"emailaddress1":"leonmyjamkutty@gmail.com",
"_parentcustomerid_value@odata.bind": "/accounts(a5f68843-ec4b-ea11-a812-000d3a579ca8)"

}
input:
{
"firstname":"alrinmyjammy",
"emailaddress1":"leonmyjamkutty@gmail.com",
"parentcustomerid@odata.bind": "/accounts(a5f68843-ec4b-ea11-a812-000d3a579ca8)"

}

但错误是,

An error occurred while validating input parameters: Microsoft.OData.ODataException: A property '_parentcustomerid_value' which only has property annotations in the payload but no property value is declared to be of type 'Edm.Guid'. In OData, only navigation properties and named streams can be represented as properties without values.

最佳答案

你的 body 应该像下面这样。我刚刚用我的一个 CRM 实例进行了测试,对我来说效果很好。url 是正确的 https://alliedmodulartemp.api.crm.dynamics.com/api/data/v9.1/contacts

{
"firstname": "Test 2 Postman",
"lastname": "Test 2 Postman",
"parentcustomerid_account@odata.bind":"/accounts(22B474B7-4F44-E111-8C06-1CC1DEE8BACD)"
}

关于php - Microsoft Dynamics crm api-在账户下创建联系人,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60149333/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com