using plugin Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/using-plugin/ Microsoft Dynamics CRM . Microsoft Power Platform Tue, 01 Sep 2015 11:45:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32&ssl=1 using plugin Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/using-plugin/ 32 32 176351444 Get / Retrieve all Entity Metadata from an organization in MSCRM 2011, 2013 ,2015 usin C# https://microsoftdynamics.in/2015/09/01/get-retrieve-all-entity-metadata-from-an-organization-in-mscrm-2011-2013-2015-usin-c/ Tue, 01 Sep 2015 11:45:00 +0000 http://microsoftdynamics.in/2015/09/01/get-retrieve-all-entity-metadata-from-an-organization-in-mscrm-2011-2013-2015-usin-c/ Below Code Retrieve all entities , who’s Responce can be used to bind entities to drop down or grid etc .  RetrieveAllEntitiesRequest req = new RetrieveAllEntitiesRequest();            req.EntityFilters = EntityFilters.Entity;             RetrieveAllEntitiesResponse resp = (RetrieveAllEntitiesResponse)service.Execute(req);             foreach (var entity in resp.EntityMetadata) ...

The post Get / Retrieve all Entity Metadata from an organization in MSCRM 2011, 2013 ,2015 usin C# appeared first on Microsoft Dynamics 365 Blog.

]]>
Below Code Retrieve all entities , who’s Responce can be used to bind entities to drop down or grid etc .

 RetrieveAllEntitiesRequest req = new RetrieveAllEntitiesRequest();
            req.EntityFilters = EntityFilters.Entity;

            RetrieveAllEntitiesResponse resp = (RetrieveAllEntitiesResponse)service.Execute(req);

            foreach (var entity in resp.EntityMetadata)
            {
                //bind it with dropdown ETC
                entities.Items.Add(entity.LogicalName);

            }

Hope This Helped You Thanks For the Support , If Any query or suggestion , please comment below


SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get / Retrieve all Entity Metadata from an organization in MSCRM 2011, 2013 ,2015 usin C# appeared first on Microsoft Dynamics 365 Blog.

]]>
2795
Activate / Deactivate a record using c# in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 ( using SetStateRequest ) https://microsoftdynamics.in/2015/02/25/activate-deactivate-a-record-using-c-in-ms-crm-2011-ms-crm-2013-ms-crm-2015-using-setstaterequest/ Wed, 25 Feb 2015 12:29:00 +0000 http://microsoftdynamics.in/2015/02/25/activate-deactivate-a-record-using-c-in-ms-crm-2011-ms-crm-2013-ms-crm-2015-using-setstaterequest/ hey , as we offensively get requirement to activate and reactivate a record then we start using update event , but there is a very simple method to do so , by using SetStateRequest : it require an assembly ” microsoft.crm.sdk.proxy.dll ” and using ” using Microsoft.Crm.Sdk.Messages;” . Code will be : SetStateRequest req = new SetStateRequest(); //the...

The post Activate / Deactivate a record using c# in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 ( using SetStateRequest ) appeared first on Microsoft Dynamics 365 Blog.

]]>

hey , as we offensively get requirement to activate and reactivate a record then we start using update event , but there is a very simple method to do so , by using SetStateRequest : it require an assembly ” microsoft.crm.sdk.proxy.dll ” and using ” using Microsoft.Crm.Sdk.Messages;” .
Code will be :
   SetStateRequest req = new SetStateRequest();
//the entity you want to change the state of
req.EntityMoniker = new EntityReference("new_abc", recordId);
//what should the new state be
req.State = new OptionSetValue(1);
//Pick an option from the status reason picklist to specify reason for state change
req.Status = new OptionSetValue(2);
SetStateResponse resp = (SetStateResponse)service.Execute(req);

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Activate / Deactivate a record using c# in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 ( using SetStateRequest ) appeared first on Microsoft Dynamics 365 Blog.

]]>
2799