1

Is there a way to get unit id returned with messages?

Тема: Is there a way to get unit id returned with messages?

I might be doing this wrong, so let me know if there is something I should be doing differently that would make this a non-issue.

I am using core/batch to send multiple messages/load_interval requests after getting an array of unit ids.

When I get back my response, it has an array of n items where n is the number of unit ids. Each item has a count and an array of messages. Is there any way to know which unit id each array of messages belongs to? I can't tell if each batch request is executed in order and therefor the order of the unit_ids array would match the order of the responses or something, or if there was a flag I could use to return the unit id with each message.

2

Is there a way to get unit id returned with messages?

Re: Is there a way to get unit id returned with messages?

Good afternoon!

The response on core/batch request contains data for each separate request in the order in which it was sent. So you need to save unit's ids before sending the request to math responses.