Cannot implement spHttpClient.beginBatch for BCS case
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!
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.
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