Hello,
We want people may ask for department membership trought the ITShop.
For all departments, we have created:
- a couple {shop / shelf} dedicated to department products
- a service catalog dedicated to department service items
- a ressource type dedicated to department assignment ressources
For each department, we have created:
- an associated service item (in the service catalog specified above)
- IsReusable=true
- an assignment ressource which bind the department with the service item
- IsForITShop=true
- IsITShopOnly=true
- IsAssignmentRessource=true
- ConnectionTable="department"
- ConnectionPath="e5b40f7f-d760-4274-b954-b47f339e4a34" (id of the targeted department)
- a product (in the shop/shelf specified above): automatically created when add an ITShopOrgHasResource between the shelf and the assignment ressource.
This way seems to work fine: we can add department service item in cart but we can't submit the request.
We meet the error: "object key is a required field".
So we investiguated on the cart item and we notice that the ObjectKeyAssignment field is emty.
We guess that quest was expected a value like the one below in order create a PersonInDepartment object.
<Key><T>PersonInDepartment</T><P>e5b40f7f-d760-4274-b954-b47f339e4a34</P><P>9d674f3d-984a-4fce-976e-8d92c870c013</P></Key>
For your information we have already applied the same schema for business roles and it works fine, this is why we would like to reproduce it dor department.
Why quest don't have generate a value for the ObjectKeyAssignment field?
Does anyone try to do this in a similar way?
Regards,
Serge