callContextClient.CurrentPlant in Scheduled Function

Pass the plant as a parameter to the function then use the temporary session constructor to switch to that plant

CallContextClient (as the name implies) is tied to the client running the code in this case the task agent

3 Likes