Does a Scheduler task NOT have access to the SessionVars BO?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Does a Scheduler task NOT have access to the SessionVars BO?

Post by Jaymer »

I've gotten spoiled using Global vars,
and I wanted a process to run off scheduler and it throws errors.
Seems to not have a SessionVars object available.

Since I know when a scheduler task is running (the AccessLevel = 'system'), I wonder if I can manually CREATE this NP object?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Does a Scheduler task NOT have access to the SessionVars BO?

Post by PointsWell »

Session variables are non persisted objects tied to a specific user.

I’d reckon that you’d be better to create a non persisted BO at the start of the process or place your data into the system settings
Post Reply