hey everyone im trying to retrive all reosureces that are in a portal item using the fetchResources function but it return
nextStart : -1
resources: []
total: 0
although there is resources in the portal item
what im doing wrong?
const item = new PortalItem({
id: "0890f410a5314b448528f059e3083261",
portal
});
await item.load();
console.log(item.fetchResources());
Resources:
I am not familiar with fetchResources but couldn't you just use the item resources REST endpoint? https://developers.arcgis.com/rest/users-groups-and-items/item-resources.htm