Quantcast
Channel: Erhan Akova , ISVLabs : Business Solutions Road Map » maximum number of records for export to Excel
Viewing all articles
Browse latest Browse all 2

How to retrive all selected grid records in Dynamics CRM into a custom page

0
0

Here ,I will try to explain how to retrieve all selected grid records in Dynamics CRM into a custom page
First of all ,we need to create a custom button  on desired entity grid which will open the custom page.


var sOtc=document.all['crmGrid'].GetParameter(‘otc’)
var sUrl = ‘/ISV/SolutionFolder/Solution.html?crmOrgName=’+ORG_UNIQUE_NAME + ‘&crmOtc=’+sOtc+’&crmUserLangCode=’+USER_LANGUAGE_CODE;
var sWin = window.open(sUrl,”,’height=650,width=750,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,modal=yes’);


Client=”Web”>

<br><br>






So,you need to update your ISV as mentioned in Dynamics CRM SDK.

crmSelectedRecords function will called on custom page.
sOtc is the parameter to determine the objecttypecode of the entity.(I like to pass this parameter to build dynamic solutions )

ORG_UNIQUE_NAME and USER_LANGUAGE_CODE are the Dynamics CRM global variables.(you can find detailed descriptions in Dynamics CRM SDK)

sUrl is the custom pages url to be called by button click

So,we need to create our custom page which will display the selected records and placed under the /ISV/SolutionFolder/.

Let’s create a HTML  page and name it as “Solution.html”.
Copy and paste the complete code into Solution.html






Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images