Expand my Community achievements bar.

SOLVED

Session ID in Fusion?

Avatar

Level 4

Is there a way to view a Session Id in Fusion Custom API call? The DevTool is not showing it

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

No. Frankly I am not clear why it's hidden. 

 

The session is created by the connection with which you access Workfront. Not sure why you need the session, but you could roll your own: 

  1. get the session with a customAPI call where you put "session" into the URL field
  2. instead of a customAPI call, use an HTTPRequest module and pass the sessionID header

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

No. Frankly I am not clear why it's hidden. 

 

The session is created by the connection with which you access Workfront. Not sure why you need the session, but you could roll your own: 

  1. get the session with a customAPI call where you put "session" into the URL field
  2. instead of a customAPI call, use an HTTPRequest module and pass the sessionID header

Avatar

Level 4

Thank you, Sven! I was able to get SessionID with Custom API call to "session"

 

First, I was trying to run the subscriptions request as

GET https://<HOSTNAME>/attask/eventsubscription/api/v1/subscriptions

using Custom API Call too and was passing the sessionID to the header there, but I was getting an error "[422] null objCode"

 

It appeared that it was adding my request to the default URL, so I got: 

https://origin-host.workfront.com/attask/api/v20.0/https:/host.workfront.com/attask/eventsubscriptio...

 

Then I tried it with HTTP request and got what was needed

 

Thank you very much for your help!