Call Workflow Service

Hello, can somebody please tll me where to find the UUID of the available “Execution Context” and how to set it in “Flow Variables”?
BG Karsten
image

Hi KarstenS,
You can get your Execution Context (EC) IDs by doing a GET Request to https://api.<yourHubURL>/execution/execution-contexts
Don’t forget to authenticate via application password.

The resulting JSON answer can pe parsed with a JSON Path node. Create a collection query for $['executionContexts'][*]['id'] by clicking the content of the id field and then the button Add collection query. See screenshot:

Afterwards, you can use an Ungroup node, if you have several results, and convert the ID into a Flow Variable with the Table Row to Variable node.
image

Does this work for you?
Best regards,
Tugrul

1 Like

Hi, thx for your answer.
Unfortunately i get a 403 error.
So i have no way to find the uuid from the dedicated execution context on the web interface?
I found this information, but knime told me its not a uuid:

Hmm, then it seems you don’t have the permission to do the API call… You can use the identifier from your screenshot. The whole string is the Executor ID, while the part AFTER the ‘@’ (b0…90) is the Execution Context ID.

1 Like

Hi @tkaynak , thank your for your help.
It seems to work like expected.
Can you please tell me which right is needed to use the api:
https://api.<yourHubURL>/execution/execution-contexts
I am a little bit irretated that i am able to see and configure the things in the knime ap, but it seems that i am not able to use the api.
So maybe i am doing it wrong somehow?

Hi @KarstenS,
Am I right in the assumption that it is a “shared” execution context (i.e., set up for several teams)? Then you need Business Hub Admin Permissions to make calls to this EC. The information displayed in the frontend is acquired differently.
If you are a Team Admin, and it is a “dedicated” execution context (i.e., set up to be managed by a team), then you should be able to do the calls.
Best regards,
Tugrul

1 Like

HI, i think i am admin of my Team. so i will try this again next week or so.