【问题标题】:Create And Update parameterValues in Attask Api C#在 Attask Api C# 中创建和更新参数值
【发布时间】:2015-09-19 22:14:42
【问题描述】:
{
  "data": [
{
  "ID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "name": "Testing Project API",
  "objCode": "PROJ",
  "parameterValues": {
    "DE:Complete Sales Package": [
      "Parcel Register",
      "Signed Lease / Contract"
    ],
    "DE:Temp ID": 1234d5.0,
    "DE:Estimated Yearly Revenue": 0.0,
    "DE:Monitoring Required": "Yes",
    "DE:Lease Rate Annually": xxx,
    "DE:Project DC Size in W": 0.0,
    "DE:Sales Person": "xxC",
    "DE:Project": "xxxx - xxxxxxxx",
    "DE:IESO status name": "OPA",
    "DE:MicroFIT Rate": 333
  },
  "category": {
    "ID": "xxxxxxxxxxxxxxxxxx",
    "name": "xxxxxxxxxxxxxxxxxxx",
    "objCode": "CTGY"
  }
}

] }

当我通过模板手动创建项目时收到的响应,名为“DE:Complete Sales Package”的参数值本身是具有多个复选框的自定义字段,因此它具有多个值。如何创建也通过api更新..

我的请求就像具有单个值的那样: https://mycompany.attask-ondemand.com/attask/api-unsupported/proj?method=post&apiKey=apiKey&templateID=templateID&companyID=companyID&name=Testing 项目 API-12345&DE:Temp ID=12345

当多个复选框中选择了什么请求?我正在使用这个 得到错误.... https://mycompany.attask-ondemand.com/attask/api-unsupported/proj?method=post&apiKey=apiKey&templateID=templateID&companyID=companyID&name=Testing Project API-12345&DE:Complete Sales Package=[签署的租约/合同,包裹登记]

??任何帮助如何发布这种具有多个值的参数值,例如:

“DE:完整的销售包”:[ “一种”, “B”、“C” ],

【问题讨论】:

    标签: attask workfront-api


    【解决方案1】:

    您需要通过更新调用来执行此操作,以下应该可以工作。

    https://mycompany.attask-ondemand.com/attask/api-unsupported/proj?method=post&apiKey=apiKey&updates={"templateID":"templateID","companyID":"companyID","name":"Testing Project API-12345","DE:Complete Sales Packag":["SSigned Lease / Contract","Parcel Register"]}
    

    【讨论】:

    • 是的,我就是这样做的,使用 json 及其作品...谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多