How to load Power Apps Portal list dynamically via Javascript

822 Views Asked by At

I know that there is a loaded event for lists in PAP that can be fetched with JS,

$(document).ready(function () {
    $(".entity-grid.subgrid").on("loaded", function () {
        //do something with list rows    
    });
});

but is it also possible to reload the list dynamically with javascript? (Sorry if this question is totally out of scope for PAP, I am a beginner.)

1

There are 1 best solutions below

0
On

Great question!

It is possible! You need to first enable APIs on the entity you wish to load by using Site Settings, then call the code to load the data within your function. This code sample should help you get started, and this step by step example will help you get familiar with the concepts.

I hope this helps?!