Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
id0

CRM Session holds information about the logged in user, the server, the database and the general and formatting settings.

What does this section cover?

Table of Contents

...

Getting the session object

To retrieve get the current session object you have to use getCRMSession() method which is implemented in com.crm.businessobject.CRMBase super class. Note that all CRMBO, CRMUI, CRMProcess and CRMAPIBean classes extend CRMBase.

Code Block
titleRetrieve CRM SessionGetting the session object
collapsetrue
 public CRMDO copy(CRMDO dto)
{
	CRMSession session = getCRMSession();
	...
}

Using the session object

After getting the session object, you can use it to get information about the logged in user, the server, the database and the general and formatting settings.

...