If you want to show non-persistent objects you will need to use a microflow as datasource, since they don't exist in your database. Alternatively you could create persistable objects and commit them to your database.
Thanks Lennart for your response. I used microflow as a data source for list view however problem with that approach was the REST call used to trigger immediately when the page used to load, where as I wanted to trigger the REST service on button click event. If I attach microflow to button click, then under Network tab of chrome developer tool, i could see records in response however they were not getting bound to UI even though mapping was present :-(
Creating persistent objects would also create data footprints hence I cant take this approach forward.
I have also used JSON structure and Import Mapping to get the data from REST call and do some processing. Objects are non persistent. Please check if you are also doing in the same way.
I have Import Mapping as shown below. I need to get to JSON object using associations mentioned.
below is the entity association created after clicking “Map automatically”
And below is how i am fetching the JSON objects after the REST service call.
you can send JSONObjectList as output of the microflow, and call the microflow from the List View in the page.
I hope this helps.
Once we connect microflow with list view, it will automatically pull data and show once list view loads in browser, however I want to populate data on button click event. How can I do that?
Need help ...
As I conclude, there are following ways to achieve this: