cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling recipe's connection - How to access the connection ID/name inside the function?

saraiva
Deputy Chef III
Deputy Chef III

Hello,

Here's the scenario:

I have two tenants of a certain application that I can integrate with. They're similar in everything, only store different data - hence I have Connection_1 and Connection_2.
I'm building CRUD recipe functions and other useful functions for that application. Let's say I have function Foo and function Bar.
All recipe functions' connections are using "Calling recipe's connection" (see image). Screenshot 2025-11-19 215034.png

This enables caller to provide a connection ID/name to select between Connection_1 or Connection_2 (see image).

Screenshot 2025-11-19 215612.png

Function Foo (parent) calls function Bar (child).
I would expect that I could call Bar (child) with the same Connection ID/Name, however, apparently there's no way to access the connection ID/Name that was used to call the parent.

Can you confirm this? Or am I missing something?

If it's really not possible, this really sucks. -.-''

 

Thanks for your time!

--
Ricardo Saraiva
1 ACCEPTED SOLUTION

saraiva
Deputy Chef III
Deputy Chef III

Looks like someone already suffered with the same.
Please go and upvote on the idea here: https://ideas.workato.com/app/#/case/516376?currentProductId=caf1efdf-1d7e-4b7b-aeb9-28e4b0f4b25c&cp...

--
Ricardo Saraiva

View solution in original post

4 REPLIES 4

saraiva
Deputy Chef III
Deputy Chef III

I have a workaround, but it's really silly, which is to add an input parameter "Connection ID" to the parent function, so I can then use that "Connection ID" to call the child function.

--
Ricardo Saraiva

This is the way.

saraiva
Deputy Chef III
Deputy Chef III

Bah!... -.-''

That's so ugly and error prone.

Time to open a ticket with Workato to suggest such "feature".

--
Ricardo Saraiva

saraiva
Deputy Chef III
Deputy Chef III

Looks like someone already suffered with the same.
Please go and upvote on the idea here: https://ideas.workato.com/app/#/case/516376?currentProductId=caf1efdf-1d7e-4b7b-aeb9-28e4b0f4b25c&cp...

--
Ricardo Saraiva