RHamilton
12/12/2023, 4:28 PMpublic IEnumerable<DataListItem> GetItems(Dictionary<string, object> config)
{
var items = new List<DataListItem>();
var thing = _contentmentContentContext.GetCurrentContent(out bool isParent);
var typeId = thing.Value<int>("pluType");
var url = $"https://my.api.org/galaxy/plu/{typeId}";
var response = await _myApiService.GetData(url);
items = // build items from results
return items;
}
Obviously not real code - but hopefully you get the idea
https://cdn.discordapp.com/attachments/1184170014740336740/1184170015197495337/image.png?ex=658aff44&is=65788a44&hm=34d9831581cb5435ce10f7ec6ce2af301c57733b6e84be9150b456efb0688fb6&