首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在VtigerCrm中创建VtigerCrm使用restfulApi

如何在VtigerCrm中创建VtigerCrm使用restfulApi
EN

Stack Overflow用户
提问于 2017-08-17 13:54:12
回答 1查看 303关注 0票数 0

我尝试使用vtigercrm中的webservice创建SalesOrders,使用邮递员发送请求到webservice,当我尝试创建产品时,使用vtigercrmv7.0,但是当我尝试创建SalesOrders失败时,任何人都知道元素必须在请求中发送什么,或者请求是如何发送的,我使用如下: url :/webservice.php

正文{

操作:创建

sessionName:

元素类型:SalesOrder

要素:

代码语言:javascript
复制
{
  "salesorder_no": "SO1",
  "subject": "ffff",
  "potential_id": "",
  "customerno": "",
  "quote_id": "",
  "vtiger_purchaseorder": "",
  "contact_id": "",
  "duedate": "",
  "carrier": "",
  "pending": "",
  "sostatus": "Created",
  "txtAdjustment": "0.00000000",
  "salescommission": "0.000",
  "exciseduty": "0.000",
  "hdnGrandTotal": "0.00000000",
  "hdnSubTotal": "0.00000000",
  "hdnTaxType": "group",
  "discount_percent": "",
  "discount_amount": "",
  "hdnS_H_Amount": "0.00000000",
  "account_id": "11x192",
  "assigned_user_id": "19x1",
  "createdtime": "2017-08-17 11:55:51",
  "modifiedtime": "2017-08-17 11:55:51",
  "modifiedby": "19x1",
  "currency_id": "21x1",
  "conversion_rate": "1.000",
  "bill_street": "ddd",
  "ship_street": "dd",
  "bill_city": "",
  "ship_city": "",
  "bill_state": "",
  "ship_state": "",
  "bill_code": "",
  "ship_code": "",
  "bill_country": "",
  "ship_country": "",
  "bill_pobox": "",
  "ship_pobox": "",
  "description": "",
  "terms_conditions": "",
  "enable_recurring": "0",
  "recurring_frequency": "",
  "start_period": "",
  "end_period": "",
  "payment_duration": "",
  "invoicestatus": "c",
  "productid": "14x191",
  "quantity": "1.000",
  "listprice": "0.00000000",
  "comment": "",
  "tax1": "4.500",
  "tax2": "10.000",
  "tax3": "12.500",
  "pre_tax_total": "0.00000000",
  "hdnS_H_Percent": "0",
  "image": "",
  "purchase_cost": "0.00000000",
  "margin": "0.00000000",
  "source": "CRM",
  "starred": "0",
  "tags": "",
  "region_id": "0"
}

但总是会回来

代码语言:javascript
复制
{
"success": false,
"error": {
    "code": "MANDATORY_FIELDS_MISSING",
    "message": "Mandatory Fields Missing.."
}
EN

回答 1

Stack Overflow用户

发布于 2017-08-18 06:20:34

您确定所有的SalesOrder强制字段都在元素数组中吗?

你可以在这里找到这样的例子:

http://blog.crm-now.de/2015/07/25/samples-for-using-the-crm-interfaces/?lang=en

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45737065

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档