Wednesday, December 10, 2014

Passing current logged in USERNAME to generic jobs-EPM Workspace

There are some situations where we need to have current logged in username to evaluate the things in the jobs.
For example if you want to do specific operation related to specific user (let say particular user's authorized data from a table) ,you will need the username dynamically from the current session so that you can use that name in the filters to avoid other users data.

Using workspace variable $FIXED_USERNAME, it can be doable.

While importing the job into workspace create a parameter with any name and choose default value as "User $FIXED_USERNAME as default value" option. You will also notice that this parameter will not be displayed when you try running job.

No comments:

Post a Comment