Is there a way to refresh a repeater component in UI Builder after a specific interval of time?

User660846
Tera Expert

I have a requirement of refreshing a repeater component in UI Builder after 2mins of a button click.

Is it possible to achieve?

7 REPLIES 7

Samaksh Wani
Giga Sage
Giga Sage

Hello @User660846 

 

button.addEventListener('click', () => {
  cover.style.visibility = 'hidden';
  button.style.visibility = 'hidden';
  setTimeout(function () {
    window.location.reload();
  }, 60000*2);
});

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

Can I implement this in UI Builder? If yes, can you please show me one example where can I put this code.

Brad Tilton
ServiceNow Employee
ServiceNow Employee

When you say refresh the repeater component, what exactly do you mean? The repeater is really just a dumb iterator that iterates through data. If you refresh its data it will automatically show the new data. If you take a step back, what problem are you trying to solve by refreshing the repeater?

Hi Brad,

My requirement is, on click of a button one flow will trigger that will call a specific API and get back data from another instance and put in a table. this process takes around 2-3 mins to complete.

Now my repeater component will get data from this table and show in the page.

My requirement is when I click on the button, after the flow run is complete, the repeater component will be refreshed so that the addition/ modification will be visible in the front end.