I currently work on an integration that uses the API v2 to get some item fields in a custom action. But the query returns different response depending on the trigger that is used. If I use a trigger that directly calls the action, like ‘when status changes’ or ‘when an update is created’, then the query with the provided itemId is successful. But when a time trigger, like ‘scheduled trigger’ or ‘when date has passed’ fires and calls the same action, then the query with a valid itemId fails with message ‘Variable itemId of type Int! was provided invalid value’.
Any ideas what is going wrong here?