Get itemId from context - integrationa ction

Hey everyone!

I’m tring to build an integration action to the custom automations.
I couldn’t find a way to get the item id triggered the automation in the webhook sent to my server.
The only options I get is sentence or trigger, but because the action is relevant for an automation and not for integration sentence I configure. So I cant pass that from the trigger.
By the way, when tring to get the board id it do have context and it works fine

Hope someone can help here :slight_smile:

hi @Ramarm

Not sure I fully understand your question. If you want to build an integration that presents itself as a custom automation action block you don’t have to specify the trigger not the recipe. Just have an workflow block that takes the itemId from the trigger and - depending on the trigger type selected by the user - you will have access to the itemId.

Like this app that has only two actions and a few fields, a sentence for the action and a run URL

The run Url is routed to this endpoint

async function recipeAction(req, res) {
  const { payload } = req.body;
  const { inputFields } = payload;
  const { boardId, itemId, columnId, durationStart, durationEnd } = inputFields;
  const { authorization } = req.headers;

and as you can see the itemId is passed to the function. Is that what you are looking for?

Hey @basdebruin , Thank you very much for helping me.
somehow it didn’t work yesterday but today worked ok. Maybe somethings in my configurations wasn’t right.

Thank you!