简体   繁体   English

如何解释结果:现场服务中不存在模板项目? BIM360 API

[英]How to intepret the result: Template project doesn't exist in Field service? BIM360 API

we are using the BIM360 API at our Company to manage Users, Project and Firms in combination with our CRM.我们在我们公司使用 BIM360 API 结合我们的 CRM 来管理用户、项目和公司。 We writen a simple tool with User Interface which is doing it.我们用用户界面编写了一个简单的工具来完成它。

We tried to use the feature of "Copy from template Project".我们尝试使用“从模板项目复制”的功能。 We are using the new "Field Management Service" because it is required following the instruction from Autodesk [api doc] ( https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-POST/ ).我们正在使用新的“现场管理服务”,因为它需要按照 Autodesk [api doc] 的说明( https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-POST/ )。

Thoughts想法

The normal project creation withouth template project works fine.没有模板项目的正常项目创建工作正常。 We can add any service to the project we want.我们可以将任何服务添加到我们想要的项目中。 Also as stated above the the "Field managment Service".同样如上所述的“现场管理服务”。 If we attach an ID for the template project we get an error, stating that the project doesn't exists in "Field Service".如果我们为模板项目附加一个 ID,我们会收到一个错误,指出该项目在“现场服务”中不存在。


So my thought is, that this function just works in the user interface from BIM360.所以我的想法是,这个 function 只能在 BIM360 的用户界面中工作。 Or more the "Field Service" is the old "Gen 1" Service which is different to the "Field Management Service" which is the "next Gen"?或者更多的“现场服务”是旧的“第一代”服务,它不同于“下一代”的“现场管理服务”?


Code代码

Code below shows the simple requestBody as JSON.下面的代码将简单的 requestBody 显示为 JSON。 The authentification and everything works fine and is send as bearer in the header.身份验证和一切工作正常,并在 header 中作为承载发送。

{
  "name": "x_Vorlage",
  "value": "0",
  "currency": "EUR",
  "start_date": "2019-10-15",
  "end_date": "2019-10-16",
  "project_type": "Wohngebäude",
  "hubId": null,
  "id": null,
  "status": null,
  "job_number": null,
  "adress_line_1": null,
  "adress_line_2": null,
  "city": null,
  "state_or_province": "Brandenburg",
  "postal_code": null,
  "country": "Germany",
  "business_unit_id": null,
  "timezone": null,
  "language": "de",
  "contract_type": null,
  "service_types": null,
  "template_project_id": "3d8ca02e-XXXX-46ff-XXXX-9c26d408XXXX"
}

The "template_project_id" is just obfuscate for posting here. “template_project_id”只是为了在此处发布而混淆。

Error:错误:

We expected something like a HTTP 200 Result or a bad request.我们预计会出现 HTTP 200 Result 或错误请求。 But we getting:但我们得到:

{"code":1004,"message":"Template project doesn't exist in Field service."}

Thanks for your help!谢谢你的帮助!

Unfortunately, the template feature only works with Field Classic in API.不幸的是,模板功能仅适用于 API 中的 Field Classic。

So, I submitted a wishlist item HQ-5127 to our engineering team to allocate time to evaluate the possibility of supporting this on Next-Gen Field.因此,我向我们的工程团队提交了一个愿望清单项目HQ-5127 ,以分配时间来评估在 Next-Gen Field 上支持该项目的可能性。 Please remember the wishlist item id for future reference.请记住愿望清单项目 ID 以供将来参考。 You're welcome to ask for the updates or provide additional information to us via sending an email that contains this id to the Forge Help channel.欢迎您通过向 Forge 帮助频道发送包含此 ID 的 email 来向我们询问更新或提供其他信息。 We appreciate your understanding and patience.感谢您的理解和耐心。 Cheers!干杯!

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

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