Skip to main content

I am using a custom action but not getting ItemId, Column Value

  • August 4, 2024
  • 3 replies
  • 43 views

  • Participating Frequently
{
  payload: {
    blockKind: 'action',
    inboundFieldValues: { groupId: 'new_group__1', boardId: 7143969205 },
    inputFields: { groupId: 'new_group__1', boardId: 7143969205 },
    recipeId: 30284129,
    integrationId: 325831333
  },
  runtimeMetadata: {
    actionUuid: '4f3500e533766ed09bdb6c54ce571b30',
    triggerUuid: '241e8452f43e6ba9637150a2f94062f7'
  }
}

and this my custom trigger input

as you can see I added everything as mention here

Apps Framework

I am using
When a status changes to something as Trigger

and idea why I am not getting the Item and columns values in my payload?

3 replies

basdebruin
  • Community Expert
  • August 4, 2024

hi @AnishJ

If you use a custom trigger and a custom action you need to define the fields you need in your action as output fields in the trigger (and as input fields on your action). When you post to the action endpoint (most likely as a result from receiving a webhook) you give those fields in the postbody, like:

  //Build the post body
  const postBody = {
    trigger: {
      outputFields: {
        boardId: event.boardId,
        itemId: event.pulseId,
        failedId: null,
      },
    },
  };

  • Author
  • Participating Frequently
  • August 5, 2024

Hey thanks @basdebruin I guess it was some bug I created a new recipe with input values so it worked. but if I try to update the old one it didn’t

anyway it’s working now


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • August 5, 2024

Thank you @basdebruin for the help here!!