AssociateCollection throws error because of api version
ibraunadesso opened this issue · 1 comments
Describe the bug
I use XrmDefinitelyTyped with on premise in version 9.1. I would like to create a n:n record by using the associateCollection function.
Before I execute the function I set the api version to 9.1.
Data from network trace:
POST URL: https://url/api/data/**v9.1**/entityname(117C2BB7-67D7-EC11-A354005056BA896E)/relationshipname/$ref
POST BODY:
{"@odata.id":"https://url/api/data/**v9.2**/entityname(418C7D21-68F1-EC11-A35B-005056BA896E)"}
Error message:
message: The URI 'url/api/data/v9.2/entityname(418C7D21-68F1-EC11-A35B-005056BA896E)' is not valid because it is not based on 'url/api/data/v9.1/'.
It seems that the api version is not set everywhere where it is necessary.
To Reproduce
Steps to reproduce the behavior:
Execute associateCollection function on premise with api version 9.1
Expected behavior
Records are successfully associated to each other.
Environment
- CRM/D365/CDS version: 9.1
Is there any workaround for the moment?
Fixed in 6.2.