Tuesday, January 2, 2018

How to retrieve the List of Profile Attributes available in a Session

How to retrieve the List of Profile Attributes available in a Session


Sometimes we have a requirement of retrieving the value of Profile Attributes set in a Siebel Users session. However we are not sure of the exact name of that Attribute. To retrieve a list of available Profile Attribute in a users session, follow the below process:

Navigate to Administration - Personalization - Test. Enter your login and password (both Case Sensitive) and click on the load button. This will give you a list of all system profile attributes that get set upon logging in to the Siebel Application. These profile attributes are available throughout the application. In addition, you can also set your own profile attributes, depending on the business requirements.
As always, use the following syntax to get and set a Profile Attribute:

Setting:
TheApplication().SetProfileAttr("XXXX","Y");  // Where XXXX is the name of Profile Attribute

Getting:
var attr = TheApplication().GetProfileAttr("XXXX");  // Where XXXX is the name of Profile Attribute


visit link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.