Arrays within Data Action to get proper output

Hello,

I'm doing an API call that returns two sections (
Account Summary and Beneficiaries). The beneficiaries list is an array.

If I create a data action that only includes the account summary, I'm able to view the output in Architect. If I do the same for the Beneficiaries list it works fine. If I create a data action that is supposed to pull both the account summary and the beneficiaries, that's where things get tricky. The UI test output Indicates that the Action successfully run but I don't see anything. In Architect, I'm not able to see the output in the Data Action.

The plan was to use one API call that contains the account summary and the beneficiaries as this reduces the number of data actions and API calls that we need to make.
I tried the translation mapping in the hopes that it would fix this but that didn't solve it.
Reading the documentation, it seems that there output contract doesn't support nested arrays.
Each account, will most likely always have beneficiaries and we would like the ability to pull all that data in one go. Is there a different approach that we can take?

Hi
If reading request correctly you can get the data response from that format json.
Did a shortened version, but in your structure and get a response correct.
If the fields are mapped in the data action fine, then you can use the Architect collections to process them


The Output Contract looks like:

Is that what you are looking for?

Simon

Hi Simon,

This is what I'm looking for. I think I will need to work the data mapping to display the information how you have it in your screenshots.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.