Search code examples
dynamics-crm-2013dynamics-crm-onlinedynamics-crm-2015

CRM get stage Required Fields


In Plug or workflow

  • How to get stage IDs or Names dynamically from entity
  • How to get current stage Required fields Names dynamically not hard coded Using c# or js or any other method
  • if any idea, Share please!

Solution

  • You can get an entity's metadata from CRM by issueing a RetrieveEntityRequest. In the response you get an EntityMetadata object having an Attributes collection providing all attribute details you need.

    The CRM SDK contains clear example code on this topic. More information about working with attribute metadata can be found on MSDN.