Populate UIB data set with an object dyanmically

tpeleg
Tera Expert

Hello experts,

 

I need to create dynamic table based on REST API data.

I'm trying to populate a data set from an object.

to start, I've created a data broker that returns a simple object:

 

tpeleg_0-1701606481377.png

tpeleg_1-1701606563049.png

Is it possible to create a dynamic table to fill this data in?

 

I mean someting like:

Type

Color

Model

Fiat

White

500

 

Thanks,

 

Tomer

10 REPLIES 10

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @tpeleg ,

Please check this below link which will help you to create table dynamic.

https://www.servicenow.com/community/developer-forum/json-input-to-table-format-in-service-portal/m-...

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

Thank you, @Omkar Kumbhar , but it seems to be relevant to service portal widget, I need to render values dynamically in the UI Builder, couldn't find the component which allows it. (the data needs to be renederd on the client side only).

Start here https://www.youtube.com/watch?v=JDzBVIsPjs8. They are doing exactly what you describe, using a repeater control.

 

There is a follow up part 2 video, but I cannot find it right now.

 

Join the developer program team as we use the new repeater component, introduced in the San Diego release, to build an experience.

Thank you very much @thomaskennedy  , highly appricated!

I think I will go in this direction! do you know if it's possible to send client paramters from the UIB record to the data broker?