derekfinlinson / xrm-webapi

Dynamics 365 Web Api TypeScript module
MIT License
27 stars 13 forks source link

The message header '--batch_BATCH123' is invalid #23

Closed cjsewell closed 6 years ago

cjsewell commented 6 years ago

Given I want to select multiple gets in a batch operation I receive the error

_The message header '--batchBATCH123' is invalid. The header value must be of the format '<header name>: <header value>'.

Steps to reproduce:

const changeSets: any[] = [];

const gets: string[] = [
    "accounts?$select=name",
    "accounts?$select=name"
];

batchOperation(config, "BATCH123", "CHANGESET123", changeSets, gets)
    .then((result) => {
        console.log(result);
    }, (error) => {
        console.log(error);
    });
derekfinlinson commented 6 years ago

:tada: This issue has been resolved in version 5.0.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: