mscrm4.0 判断当前用户角色_示例
摘要: alert(UserHasRole("SystemAdministrator"));functionUserHasRole(roleName){//getCurrentUserRoles,oXmlisanobjectvaroXml=GetCurrentUserRoles();if(oXml!=null){//selectthenodetextvarroles=oXml.selectNodes("//BusinessEntity/q1:name");if(roles!=null){for(i=0;i<roles.length;i++){if(role
阅读全文
posted @
2011-03-21 18:05 Seer Lin 阅读(55) |
评论 (0) 编辑
mscrm 4.0 获取当前用户角色
摘要: varscript=document.createElement('script');script.setAttribute('runat','server');script.setAttribute('language','javascript');script.text="functionUserHasRole(roleName){varoXml=GetCurrentUserRoles();if(oXml!=null){varroles=oXml.selectNodes(\'//Busines
阅读全文
posted @
2011-03-16 16:53 Seer Lin 阅读(69) |
评论 (0) 编辑
mscrm4.0 获取当前登录的用户名
摘要: varxml=""+"<?xmlversion=\"1.0\"encoding=\"utf-8\"?>"+"<soap:Envelopexmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"xmlns:xsd=\"http://www.w3.org/2001/XMLSche
阅读全文
posted @
2011-03-10 10:33 Seer Lin 阅读(143) |
评论 (3) 编辑
mscrm4.0 用js调用Webservice
摘要: varORG_NAME="xteam";functionretrieve(entityName,entityId,attributeName){varxml=""+"<?xmlversion=\"1.0\"encoding=\"utf-8\"?>"+"<soap:Envelopexmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:xsi=\"http://www.w3
阅读全文
posted @
2011-03-10 10:29 Seer Lin 阅读(97) |
评论 (0) 编辑