This topic was automatically generated from Slack. You can find the original thread here.
Sorry to spam again team! Only message when Im desperate haha !
Im using a click up pre built, but noticed by default when i select a peramator its using the field number to look up the json payload data. However i’d rather tell it to look for the set id as seen below as sometimes the number will change if more or less data in the set item. but the ID will never change from click ups side, Is there a tweak to my code line to make it look for the ID ? ive tried a few ways but always failing haha.
Note that my code above will assume there will always the field with name ID. In case the ID field doesn’t exists, it will fail with error, so you might need to handle the error in that case
on a similar topic, wondering if this is now possible … say the payload provided a bunch of options from a drop down and they were numbered 1-10, click up says the option selected was 7. We want the name from 7 not the number 7 in this case, I had set up a data store as a quick look up and grab, but given both sets of data are in the pay load is it possible for me to just say hay grab the name of 7 as 7 is the given number ? Sorry not sure if my explanation makes sense outside my
but from what u did a moment ago, i wonder can i alter wiht soime json some how to say search the orders and if index = 0 then take the name (category) from the order = 0
> but from what u did a moment ago, i wonder can i alter wiht soime json some how to say search the orders and if index = 0 then take the name (category) from the order = 0
Yes you can do that. Actually you can put any Node.js code that evaluated to a string into the custom expression. So you can totally change the logic as you need
{{ steps.trigger.event.task.custom_fields.find(field => field.name === ‘958a6fcf-5987-4cb8-a29d-f6935cc71e6e9’).name}} example here and image attacehdf for the payload