Skip to content

Using list methods where result is not an array #24

Description

@felipealmeida

Hello,

I'm trying to use the crm.stagehistory.list method the following way:

bitrix.list('crm.stagehistory.list' as any, { entityTypeId: 2 } as any)
    .then((payload) => 
          {
              console.log(payload);
          });

However, if you try that you will see that it fails on batchToListPayload because it assumes result is iterable, however, result in this call is an object and items inside that is an array.

Maybe there could be a way to specify how to batch, or at least a way to pass a different batchToListPayload?

Kind regards,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions