IIS 6.0CEOQADBAIISVisual Studio 2005设计/图形架构师.NET 2.0XMLSQL Server 2005C# 2.0中级开发Visual StudioSQL ServerWindows.NETASP.NETC#
Microsoft Office SharePoint Server 2007 (MOSS 2007) 和 Microsoft CRM 集成






3.42/5 (34投票s)
集成的目的是在 Microsoft CRM 中创建新帐户或商机时,在 SharePoint 2007 上创建协作站点。
- 下载 Config.zip - 1.6 KB
- 下载 Dlls.zip - 1,064.6 KB
- 下载 MOSS2007_and_Microspft_CRM_30_Integration.zip - 206.9 KB
- 下载 Proteans.zip - 2,475.7 KB
引言
集成的目的是在 SharePoint 2007 上创建协作站点,当 Microsoft CRM 中创建新的 帐户 或 商机 时。
每当在 Microsoft CRM 中创建新的帐户或商机时,将触发一个工作流。该工作流将执行一个名为 "{SomeName}.dll" 的 .NET 程序集。该程序集负责在 SharePoint 服务器上创建相应的协作站点。
使用代码
Workflow Architecture See figure Workflow rule.jpg Code to Apply Logo to Sharepoint Site private static void ApplyLogoToSharepointSite( string siteName , string entityName) { SPGlobalAdmin globalAdmin = new SPGlobalAdmin(); string siteURL = ConfigurationReader.GetSharepointSiteUrl(); SPVirtualServer dashboaordServer = globalAdmin.OpenVirtualServer(new Uri(siteURL)); Microsoft.SharePoint.SPWeb _web = dashboaordServer.Sites["sites/"+siteName].RootWeb; Logger.Instance.LogComment( _web.Url ); if (_web != null) { _web.AllowUnsafeUpdates = true; _web.SiteLogoUrl = ConfigurationReader.GetSharepointSiteLogoUrl(entityName); _web.Update(); }
关注点
在 CRM 中创建工作流规则
1. 打开工作流管理器。
WorkFlowRule1.jpg (请参阅文档)
WorkFlowRule2.jpg (请参阅文档)
WorkFlowRule3.jpg (请参阅文档)
在这里,我们指定将从工作流规则传递到 .net 程序集代码的参数值。我们需要分别传递帐户 ID 和商机 ID,用于帐户和商机。
WorkFlowRule4.jpg 下载 Proteans.zip - 2,475.7 KB
成功创建工作流规则后,我们需要激活该工作流规则。
历史
更新内容即将推出.............