sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Cannot implement spHttpClient.beginBatch for BCS case

Open artxach opened this issue 9 years ago • 2 comments

Category

  • [x] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Enhancement / Suggestion
  • [ ] Additional article idea

Expected or Desired Behavior

To be able to accomplish bcs data loading using batch request

Steps to Reproduce

_This is my code in JSOM

const ect:SP.BusinessData.Entity = web.getEntity(ECTNamespace, ECTName); context.load(ect); const lobSystems:SP.BusinessData.Collections.LobSystemInstanceCollection = ect.getLobSystem().getLobSystemInstances(); context.load(lobSystems); context.executeQueryAsync(function () { let lobInstance:SP.BusinessData.LobSystemInstance = lobSystems.get_item(0); let filters:SP.BusinessData.Collections.FilterCollection = ect.getFilters(finderMethodName); context.load(filters); let filtered:SP.BusinessData.Collections.EntityInstanceCollection = ect.findFiltered(filters, finderMethodName, lobInstance); context.load(filtered); context.executeQueryAsync(function (){ for (let i: number = 0; i < filtered.get_count(); ++i) { items.push(filtered.get_item(i)); }

How can i accomplish this with REST API and spHttpClient.beginBatch operation? Thanks!

artxach avatar Mar 22 '17 12:03 artxach

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 3 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open or submit a new issue.

ghost avatar Dec 29 '21 14:12 ghost

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Jan 06 '22 06:01 ghost