Cache variable and API

Hello everyone ,

I’m new in Powershell universal.
I have a litte question about cache variables.

I would like to get the cache variable set in my scheduled script with single file configuration but that doesn’t work.

Code below :

My main script :

My scheduled script that only set a cache variable and display for job output :

My endpoints script :


Do you have any suggestions ?

Can you try this without single-file config? Honestly, the single-file config has some issues and I wonder if you are running into them. What you are trying to do should totally be possible.

Yeah it’s better without single-file configuration :slight_smile:

Thx Adam

1 Like