Unable to get CI from session in service operation handler
Hi,
I am working on providing a web service to a stand alone app through which a self-service user can apply for a leave.
The transaction gets authenticated using the node default credentials and once the handler is invoked, i am using SwithUser function to switch the current user. Then use a CI on the delivered leave component to apply for a leave. The user switch was done as the delivered leave component uses %EmployeeID in many places and hence the the transaction will not work properly if the CI is invoked through any admin ID.
The problem is that the self-service user has all the access to invoke the CI (I have tested this by running the same code in an app engine and it works), but not able to get the CI through the handler app package. After using SwitchUser i have also checked the current user and used IsUserInRole function to verify if the role is available and all the details look fine. But I am still not able to get the CI from session.