Wednesday, August 13, 2008

How to get user Token Business Object XI R2

Hi,

Working with Business Object Framewok can be tricky, but when you are working and need to make link to BO, without pass the authentication page on BO, this litle example can help get the token to create directs link to Web Inteligence.

using CrystalDecisions.Enterprise;

String Token;
using (CrystalDecisions.Enterprise.SessionMgr sessionMgr = new CrystalDecisions.Enterprise.SessionMgr())
{
EnterpriseSession enterpriseSession = sessionMgr.Logon("Login", "Password", "BOServer", "secEnterprise");

Token = enterpriseSession.LogonTokenMgr.CreateLogonTokenEx("", 60, 100);

}
Post a Comment