Getting Plural Names of Entities using WebApi
In Dynamics 365 / Power Apps, entity names can have various different plural extensions, such as “s”, “es”, “ies” etc. So when you’re writing code and you need the plural name of an entity dynamically, knowing only the singular name, how do you get it to ensuring you’re using the right name? You can use Xrm.Utility.getEntityMetadata to get it. For example, with accounts below: [sourcecode language=”JavaScript”] Xrm.Utility.getEntityMetadata("accounts", "") .then(function (result) … Continue reading Getting Plural Names of Entities using WebApi