Skip to main content
August 19, 2022
Solved

Using Rest API Data for Gridview and Dropdown

  • August 19, 2022
  • 2 replies
  • 0 views

Hallo Community,

Goal: Display response of Rest API in Gridview and Dropdown.

I have a working integration (via a public API) providing car manufacturers. The data is retrieved by Appian and consists of ID, Brand, Country.

Now I like to simpy display the data in a DropDown and a read-only Gridview. I went through the Online-Course "Integrations" for some help  but ultimately I cannot get this to work.

For GridView:

    data: rule!BP_GetCarManufacturers().result.body (the Integration object)

For each Column, I tried different approaches:

* value: fw!row.ID etc.

* value: {index(rule!BP_GetCarManufacturers().result.body, "Country", {} )}

Same for Dropdown, I also tried out different flavours of index(), but the best I get is the whole API response in one Choicevalue.

Any help/hint/guidance is appreciated!

Dan

Edit

I understand that it might not  be best practice to use an API call directly in some UI, it's really about a PoC.

Stating this, I guess best way would be API => Record Type => Interface?

    Best answer by dant0005

    Found the answer/solution in another community post:

    community.appian.com/.../how-to-show-the-names-fetched-from-integration-object-in-new-row

    2 replies

    dant0005AuthorAnswer
    August 19, 2022
    August 20, 2022

    Welcome to the best betting sites slot-hyper-strike.com. Here you will find everything you need to make smart bets, strategies and strategies as well as tips and more.