Skip to main content
alexanderf022406
March 5, 2025
Question

Call information from many lists

  • March 5, 2025
  • 4 replies
  • 0 views

Hi, im new in appian. I create a get api integration which recieve multiple lists those lists recive another ones. Also i create a expression rule to parse this information with my CDT. On my forms i call this rule and it works with text information but not with lists. 

This is my interface:

This is my rule expression:

This is my CDT:

4 replies

stefanhelzle0001
March 5, 2025

I have a hard time following you. Do you mind explaining in more detail what you want to achieve, what you are doing, and what you observe?

alexanderf022406
March 5, 2025

basically as you see I have an expression rule that joins the information I receive from a GET API with a CDT. In the response of the rule expression we can see all the fields and lists that it brings. This rule expression is called locally in the forms that I show in the first image, you can see that some filed text is already being shown from the API response but for example I want to call the first item of the list "condicionesPoliza" or some subfield that it has and it does not allow me, I get an error that cannot index because its an array type. And as you can see in the rule expression I have many lists that I need to put in the forms, call the item that corresponds to each field.

stefanhelzle0001
March 5, 2025

 So, when you want to drill down into a data structure containing lists, you might want to use a number to get that item.

BTW, using the index() function with multiple indexes is a undocumented "feature" and might have some ugly edge cases. Find a better solution in this blog post: appian.rocks/.../