Custom field of type list how to recieve the current boardId in the payload

So I am trying to create a sentence reciepe. The first field Board I am trying to make a custom field of type list which will show all of the boards in the workspace except the current board the automation will be created. So to show these options my endpoint /monday/board_options is recieving the below payload.

 {
   payload: {
     recipeId: 30397821,
     integrationId: 12925401,
     automationId: 12925401,
     pageRequestData: {},
     dependencyData: null
   }
 }

What do I need to do so that in the payload I will recieve the current boardId?


hi @shadab

You should be able to add the board to de dependencies in the Field Type Editor. That will give you the boardId in the payload.

When I am adding Board as a dependency in the field as show in the below image.

In my reciepe I get that Select a Board first which is not what I want I just have two fields selectedBoard and selectedGroup. And when user selects the Board in my payload I want to get the active/current board id.

@basdebruin any inputs here please.

What did you define as the source for the boardId, I guess you need to set it to “Context”