CRM 2011: get service activity customer guid RRS feed

  • Question

  • Hello,

    I have created an ribbon button over the activity pointer main grid, this button calls a javascript fuction.

    The function loops through all selected objects, and gets the object GUID and entity type code as follows:

     for(var $v_0=0;$v_0<selectedObjects.length;$v_0++)
            //alert(selectedObjects[$v_0].TypeCode + " " + selectedObjects[$v_0].Id);
            if (selectedObjects[$v_0].TypeCode == "4214")
                  //get service activity customer guid here!

    For type code 4214 (service activity) I would like to use the object GUID to query the service activity to read the customer GUID.

    I am using the RetrieveRecord function from this class http://www.bizforward.cws-international.com/2011/03/09/useful-javascript-functions-and-methods-for-crm-2011-cws-crm-utils-js-library/

    but it is not working (for the service activity entity only).

    Any ideas please?

    Darren Mercieca

    Thursday, March 1, 2012 10:13 AM

All replies