Asked by:
GUID in ms crm 2011

Question
-
Hi All
I would like to get the GUID for a selected records and pass the GUIDs to an ASPX page
How to do this?
Regards,
Hussain
hussain
Saturday, September 7, 2013 9:09 PM
All replies
-
Hi Hussain,
All the info you need can be found here
http://msdn.microsoft.com/en-us/library/gg328034.aspx
hth
Saturday, September 7, 2013 9:14 PM -
Was not clear enough for me.
hussain
Saturday, September 7, 2013 9:24 PM -
Check this http://social.microsoft.com/Forums/en-US/382bde52-b7a1-488e-8145-56a38eeb442a/crm-2011how-to-retrieve-selected-records-from-crm-grid
If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'
Saturday, September 7, 2013 9:41 PM -
Hi Hussain,
You can create JavaScript library that will be called on Ribbon button click. We can pass the selectedcontrolselecteditemids as CRMParameter to JavaScript library. The Guids are passed as comma separated values to the JavaScript function. In JavaScript library you can write the code to open the Aspx page by passing the Guid's.
http://rajeevpentyala.wordpress.com/tag/selectedcontrolselecteditemids/
Hope this helps!
Thanks!
Sunday, September 8, 2013 5:21 AM -
Hi Hussain,
Here are the steps to achieve your requirement.
- Add a custom ribbon button to the HomePageGrid of the desired entity
- Configure the button to call a JavaScript function which will open the ASPX page in a new window. The custom ribbon button will need to pass the selected GUIDS to the JavaScript function as parameters. These parameters will also need to be part of the window.open method so that you can pass them to your custom ASPX page
- On load of your custom ASPX page, you will be able to read the GUID parameters from the query string and apply any further business logic as required.
Please let me know if you have any further questions regarding these steps.
Please feel free to contact me using the following methods
Sunday, September 8, 2013 8:05 AM