Showing posts with label MS Dynamics CRM 2011. Show all posts
Showing posts with label MS Dynamics CRM 2011. Show all posts

Friday, 8 September 2017

How to Open Entity or View using direct CRM URL in MS CRM 2011/2013/2015/2016

We can use URLs to open specific entities and views whenever we requires in our custom applications. The below are the scenarios to open entity forms and views using URLs.
NOTE : Use Xrm.Utility.openEntityForm when you open entity forms programmatically within the application by using web resources. Do not use window.open.Outside the application, where pages do not have access to the Xrm.Utility.openEntityForm function, use window.open or a link to open a specific record or form for an entity.

Open a new Entity Record:


http://crmurl/Org/main.aspx?etn=&pagetype=entityrecord
E.g. : FOR new  contact :  http://crmurl/Org/main.aspx?etn=contact&pagetype=entityrecord

open a contact entity record form where the id is {81330924-802A-4B0D-A900-34FD9D790829}:


http://myorg.crm.dynamics.com/main.aspx?etn=contact&pagetype=entityrecord&id=%7B81330924-802A-4B0D-A900-34FD9D790829%7D

open the Active Contacts view for Microsoft Dynamics 365 (online) with no navigation bar or command bar


http://myorg.crm.dynamics.com/main.aspx?etn=contact&pagetype=entitylist&viewid={00000000-0000-0000-00AA-000010001004}&viewtype=1039&navbar=off&cmdbar=false
Learn deeply: Click Here

Friday, 6 May 2016

Get the registered PlugIn Assembly from CRM

sometimes you had registered a DLL that is working properly but you make some changes in the code and finally you realize that the code doesn't work. It could be great, if you could take the current DLL as backup and registered the new one without concerns.


-----------------------
Here are some solutions

1. If you are running with GAC or Disc deployment then you may find it under assembly area where your CRM is deployed
Sample path:
C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly

2. If you are running with Database deployment then you may get this Dll as part of your entity within your solution. You can export your solution as un-managed and will find your plugin dll inside PlugIn/Assembly directory.

3. You can download an existing plugin through code, not via the browser.

You want to query for the "pluginassembly" entity, that will have all the dlls that are registered. The "name" field is the name of the assembly so you'll check that to make sure you have what you want.

To download the assembly, you'd download it the same way you would an attachment on a note:


  1. // check for null on the content attribute, then....
  2. byte[] theAssemblyData = Convert.FromBase64String(record.Attributes["content"].ToString[]);
  3.  
  4. // Write it to the hard drive if you want
  5. File.WriteAllBytes(thePath, theAssemblyData);

Hope this will help some techies!