dynamics crm - CRM 2011 Field Security based on attribute value -
i have situation want use field security when attribute on record value. entity contact , there bit attribute called vip. when user opens record , vip value true , not in vip team user cannot see fields marked field security.
is possible write plugin this, or there better solution?
you connect form's onload event , check user's teams , vip field , show other fields accordingly.
not sure if there's easier way teams, odata request option: http://msdn.microsoft.com/en-us/library/gg334767.aspx
command this:
var userid = xrm.page.context.getuserid(); var cmd = "/teammembershipset?$select=teamid&$filter=systemuserid eq guid'" + userid + "'";
to set fields' visibility, have @ link: http://danielbergsten.wordpress.com/2011/02/15/crm-2011-javascript-for-hiding-a-field-based-on-another-fields-value/