Skip to main content
Question

Manually handle global sessions (Package Sdk)

  • March 22, 2024
  • 3 replies
  • 89 views

Forum|alt.badge.img+3
  • Navigator | Tier 3
  • 10 replies

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?

3 replies

Micah.Smith
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 424 replies
  • March 22, 2024

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.
 

Forum|alt.badge.img+3
  • Author
  • Navigator | Tier 3
  • 10 replies
  • March 22, 2024

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.


Micah.Smith
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 424 replies
  • March 22, 2024

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.