重定向到动态CRM主页

本文关键字:主页 CRM 动态 重定向 | 更新日期: 2023-09-27 18:08:19

我正在开发一个动态CRM自定义在线身份验证登录。我现在能够检索登录的用户信息,我想将登录的用户重定向到CRM页面。下面是我得到的。

 // Now make an SDK call with the organization service proxy.
                // Display information about the logged on user.
                Guid userid = ((WhoAmIResponse)organizationProxy.Execute(
                    new WhoAmIRequest())).UserId;
                SystemUser systemUser = organizationProxy.Retrieve("systemuser", userid,
                    new ColumnSet(new string[] { "firstname", "lastname" })).ToEntity<SystemUser>();
                Response.Write("Logged on user is."+
                    systemUser.FirstName+" "+ systemUser.LastName);

登录用户信息检索成功。如何重定向到CRM主页?

重定向到动态CRM主页

你试过这样做吗?

Response.Redirect("http://<crmserver>:<portnumber>/main.aspx");

编辑:检查微软的这个选项来做我认为你想要的:

  • 自定义网页单点登录
  • 从ASPX网页或IFRAME实现单点登录
  • 使用Microsoft Dynamics CRM Web Services认证用户