XRM-OSS / Xrm-WebApi-Client

A promise-based JavaScript library for the Microsoft Dynamics CRM WebApi - TypeScript type definitions available
https://xrm-oss.github.io/Xrm-WebApi-Client/
MIT License
100 stars 28 forks source link

EntitySet Naming #1

Closed jlattimer closed 7 years ago

jlattimer commented 7 years ago

The way you're determining the entity set name isn't always accurate. There are a number of instances where entities don't follow the "standard" conventions. Granted these are rarely used intersect entities, but you'll notice in the examples I've included the EntitySetName appends 'set' or 'collection'. Really the best way to determine the value is to go to the metadata ad find the value.

image

image

DigitalFlow commented 7 years ago

Hey there,

Thanks for your issue. Since this does not seem to follow a rule, what do you think about adding the possibility to specify the set name on requests for overriding the automatically generated set names?

Kind Regards, Florian

jlattimer commented 7 years ago

I think that is probably a good option. Making a metadata request to the fly to get it would be costly in terms of performance and trying to maintain a hard-coded list would get ugly.

DigitalFlow commented 7 years ago

Just published a new release that addresses this issue, I will close it therefore.