0

我正在开发动态CRM定制在线身份验证登录。我能够检索记录的用户信息,现在我想将记录的用户重定向到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主页?

回答

0

你尝试类似的东西:

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

编辑: 检查做什么,我想你微软的这个选择想要的:

+0

仍然重定向到登录页面。而不是主页面 – chamara 2013-04-10 10:04:10

+0

所以你启用了IFD,你想要一个自定义登录,对不对?查看我的更新。 – 2013-04-10 10:18:07

+0

是的,我想自定义登录,我已经成功完成自定义登录身份验证部分。认证后,重定向卡住。 – chamara 2013-04-10 17:21:51