-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to associate Activity Parties #16
Comments
Hi @shaunjc Could you provide error messages received from Web API please? Thanks |
Hi @wizardist, Each of these throw a 400 Bad Request when attempting to POST the following data.
|
Hi @shaunjc One thing I want to point out is that relationship schema names are case-sensitive and sensitive to spelling mistakes. And CDS / Dynamics 365 have a
|
Hi @wizardist, That does seem odd as the only items that I've seen that are in PascalCase are the entity properties. All other data I get from the API (and in turn submit back to it), such as each of the attribute keys and entity names, are all in lowercase. The case sensitivity here probably explains why the Contact relation didn't work, and while I did find the Regardless, the last paragraph in that first code block was what I implemented to get the data saving in the first place.
As you can see I did use the I still think that finding some way to expose / leverage Party Lists through the Web API would be a beneficial feature to have, however I understand if you would prefer to close this feature request. |
@shaunjc What you're trying to do here is a deep insert, and the toolkit indeed does not support that yet. But it is a valid feature request. 👍 As for exposing party lists, we would require to look up organization metadata instead of OData metadata, which is a different beast. But it is doable in theory ;) |
On the topic of deep retrievals, the easiest way I found to access and manage associations was to access the ODataClient.
Adding a new optional parameter to |
Native support for Activity parties does not appear to be a core part of the toolkit functionality. The serialization helper seems to strip these fields as they do not show in the returned metadata with the current implementation.
As an example, attempting to create a campaignresponse with a matching customer does not work like the standard way to update and associate records.
A new class for Activity Party entity types which encode themselves appropriately and possibly match the correct parts of the metadata, would help simplify the process of linking data.
The text was updated successfully, but these errors were encountered: