โ07-23-2024 07:06 AM - edited โ07-23-2024 07:17 AM
when building a custom action, Is there a way to access the calling recipe properties*** ?
something like this would be great, but *_dp* does not compile:
_dp('{"pill_type":"job_context","path":["master_job_id"]}')
*** specifically, the properties that are interactively available in the default "properties" object, such as [Recipe ID], [Recipe name], [Recipe path], [Master job id], [Calling recipe id], ...
Solved! Go to Solution.
โ07-23-2024 08:51 AM
You can't access them directly. Just make input parameters and pass them into the action.
โ07-23-2024 08:52 AM
This is how data pills are encoded. Copy a data pill from the Workato UI and paste them into a text editor.
=_dp('{"pill_type":"output","provider":"workato_variable","line":"11c43824","path":["amount"]}')
โ07-23-2024 07:13 AM - edited โ07-23-2024 09:06 AM
Hi @jimbarryatpanda ,
Can you please give more details about " but *_dp* does not compile:" so that I can help you out.
Thanks and Regards,
Shivakumara Avadhani
โ07-23-2024 08:52 AM
This is how data pills are encoded. Copy a data pill from the Workato UI and paste them into a text editor.
=_dp('{"pill_type":"output","provider":"workato_variable","line":"11c43824","path":["amount"]}')
โ07-23-2024 08:51 AM
You can't access them directly. Just make input parameters and pass them into the action.
โ07-25-2024 12:26 PM
yes, I am trying to access facts about the calling recipe properties directly, without creating an input parameter and manually assigning the value. I am doing this now and wanted to remove the input parameter.
This is a feature request for the Custom Connector SDK.
Maybe all the "properties" from the calling recipe (including the action step-number) could be passed into a hash for easy access??
I need values like the following: