cancel
Showing results for 
Search instead for 
Did you mean: 

Get the API name of a datapill in a recipe

Waldy
Deputy Chef III
Deputy Chef III

I'm receiving a payload in a webhook trigger that has section of JSON like:

 
 

Screenshot 2026-05-14 102600.png

I'm posting to an API that has an array like this:

Screenshot 2026-05-14 102804.png

I need to pass the datapill API name in ParameterName field and the datapill value in the ParameterValue field.  I can't find anything in the documentation to be able to get a datapill API name.

4 REPLIES 4

gary1
Star Chef I
Star Chef I

You can use .keys to get the keys/API name in a hash. It's not recursive.

character = {
  "name": "Frodo Baggins",
  "race": "Hobbit",
  "age": 50,
  "home": "Bag End, the Shire",
  "role": "Ring-bearer",
  "weapon": "Sting",
  "companions": [
    "Samwise Gamgee",
    "Gandalf",
    "Aragorn"
  ],
  "item": {
    "name": "The One Ring",
    "power": "dominion over all",
    "dangerous": true
  }
}

character.keys 
## output:
## [
##   "name",
##   "race",
##   "age",
##   "home",
##   "role",
##   "weapon",
##   "companions",
##   "item"
## ]

  

Waldy
Deputy Chef III
Deputy Chef III

So this has to be done via the raw JSON payload rather than the data pills?  I'm currently using the datapills that are returned from the webhook.

No, this works on the root data pill as well. If my example was used in a JSON parser action, I could use .keys on the "Document" output data pill.

Waldy
Deputy Chef III
Deputy Chef III

Thanks Gary, I'll check it out!