cancel
Showing results for 
Search instead for 
Did you mean: 

Add Xrm Utility method to get an entity's collection name for web api from the logical name

Author Name: CHRISTOPHER GROH

Using English plurals for entity collections can be a pain to work with when writing generic code meant to work on multiple entity types because almost all other CRM apis use entity logical names. It would be great if there were a method that when passed in the entity logical name returned the entity collection name for use with web api.

Status: New
Comments
Level: Powered On
Status changed to: New
 
Level: Powered On
As a workaround, you can query metadata but this adds overhead of an additional request.
Level: Powered On

We should just be able to query by Entity Logical Name. The ELN is passed for each and every Lookup attribute anyway, so it is known at runtime and code could be modular. I have no idea why anyone would want to add an additional name for the collection.