locked
CRM Parameter Filter - Invalid parameter on type parameter RRS feed

  • Question

  • Hi All

    Trying to open a new form (create) and passing in some default parameters, one of which is a lookup.

    var extraqs = "anh_parentbuilderfailureid=" + Xrm.Page.data.entity.getId();
    extraqs += "&anh_parentbuilderfailureidname=" + Xrm.Page.getAttribute('anh_builderfailurenumber').getValue();
    extraqs += "&anh_parentbuilderfailureidtype=" + Xrm.Page.data.entity.getEntityName();
    

    The page will open if I default just a regular string field, but as soon as I try to default the lookup it gets this error 

    CRM Parameter Filter - Invalid parameter 'anh_parentbuilderfailureidtype=anh_builderfailure'

    I have tried to use parameters and Xrm.Utility.openEntityForm, but get the same error.

    Any Help will be greatly appreciated.

    Thanks Paul

    Friday, November 9, 2012 7:08 PM

Answers

  • Well solved the problem.

    After reading the SDK for the 3rd time I read one critical piece of information.  Type is only required if the destination attribute is of type "Customer" or "Owner".

    Works like a charm now.

    Happy CRMing everyone.

    Cheers

    Paul

    • Marked as answer by Paul C Mitton Friday, November 9, 2012 11:39 PM
    Friday, November 9, 2012 11:39 PM