Skip to main content

Hey all,

Anyone know how to manually manage global sessions in the package sdk if I don’t want users to have to pass in a session for each step?

@Micah.Smith You’ve been great help in the past one these things (wish other aa folks were as committed as you to answer questions)

Thanks?

I think you’re talking about this right? https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/developer/cloud-use-shared-session-sdk.html


You would just need to set a default value for that session field.
 

I think you’re talking about this right? https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/developer/cloud-use-shared-session-sdk.html


You would just need to set a default value for that session field.
 

Thanks for the reply! Yeah, I guess it’s just a bit confusing how that works. Is a new SessionObject created if the default value is used? 

It’s sorta nice how non-global sessions work, you just inject in the session map and could retrieve and create sessions by name. I guess this is really what I am looking for, but for global sessions.


Yea I think its a language thing maybe - shared session = global session.

If you look at Step 3 in that doc’s reference, it mentions global session. It should be a similar concept to implementing local sessions.


Reply