I’ve been playing with Banzai - loving it so far! I take it this is an appropriate place to ask questions and feedback about it?
I’ve setup a REST API outside of Salesforce that makes calls to a number of other systems, the thought being that I can call the REST API I have setup and have that call multiple external systems, rather than having to call multiple endpoints from within my Skuid page. The object returned has keys with results in an array from each system.
I can set up multiple models that look at each relevant part of the response (with “Path to Contents”) and use those models within my page; however this makes multiple calls to my API, which isn’t efficient because each underlying system gets hit on each call, as well as redundancy of data being returned.
Rather than use multiple models, I’ve tried to use the “outer” result object (which has the keys and arrays), but the Skuid components don’t seem to understand the array structure - for example, if I put a field editor in the page, it isn’t able to recognise there are multiple records in the array that should be displayed (i.e. the editor should repeat, once per item in the array), it just displays information from the first one.
Are there any other approaches that I’m missing that will work in the way I want it to? The only other solution I can think of is to dynamically create model records with Javascript from another Model that makes the actual call, but this feels like a hacky workaround.
Thanks in advance.
Question
Multiple models from 1 call to 1 remote data source (Banzai)

Translate
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.