Can't access fulfillment order ID in a foreach over fulfillment orders

The fulfillmentOrdersForeachitem.id isn’t available in the list. I also tried manually typing it in but that doesn’t seem to work.

This is because the types don’t match, but probably they should match.

2 Likes

Looks like if you return an ID type it should work:

type Output {
  someId: ID!
}
2 Likes

That’s why he’s the goat. The goooooooat.

Success:

Also, for future posterity, I think the issue may have also been related to the fact that I had includes instead of equals as the condition.

1 Like

Totally agree!! I remember asking things back in the Partners Slack Community and @paul_n was always helpful there! :rocket:

1 Like

Thanks, I do have an advantage in that I can ask a team of engineers about something. :slight_smile:

2 Likes