Hi
I have configured a Business Application and a Business Object Type in xECM.
Now I am trying to create a Business Workspace as described in the REST API documentation.
The code for creating a "early" business workspace works fine:
{"parent_id":14180,"template_id":14183,"name":"John Doe","description":"Business Workspace of John Doe"}
But when I try to create a "late" business workspace with a bo_id then I get an error message :"Cannot get metadata from the business application ?. Business object type: ?, business object ID: 123456"
I also tried creating a "early" business workspace first and then doing a PUT /v2/businessworkspaces/{node_id}/workspacereferences to update the workspace reference but I get the same error message.
Now in my Business Application I have provided a bougus "Application Server Endpoint" and I suspect that the calls I am making with bo_id is trying to lookup this id in the Business Application.
In my project I am currently using the ECMLink web services but I would like to switch to the REST API. When I am using the createOrUpdateWorkspaces in ECMLink everything is working fine.
There is a line in the REST API documentation that I am puzzled about:
If the "template_id" is not provided, then the workspace template ID is determined from the values of "bo_type_id" and "bo_id".
Why would you need to use the bo_id to determine the template_id? You can set the template by setting "Workspace Template" when you configure your Business Object Type!
And one last thing: does anyone know if you can provide "Business Properties" when crating the Business Workspace?
Any input would be appreciated 👍️
Peter