function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EmilyCobbEmilyCobb 

Displaying multiple lists from Apex callout in Flow screen

Hi all,
I'm working on a Flow that has an Apex callout returning the following invocable variables:
public class serviceOutput {

        @InvocableVariable
        public List<String> productCode;
        @InvocableVariable
        public List<String> startingPrice;
        @InvocableVariable
        public String contextId;
        @InvocableVariable
        public String externalId;
    }

From the flow I've been able to do the callout and retrieve the results. I can display the results from productCode, contextId and externalId on the screen with a Loop / Assignment for the productCode list. My issue is that I need to display the corresponding startingPrice as well. Since this is not a fast lookup or sObject I'm having trouble determining how to display both the productCode and corresponding startingPrice with a loop / assignment variable. For example the results for the two lists will be:
productCode[ABC_123, ABC_456, ABC_678]
startingPrice[$40, $20, $30]

And I want the screen output to read 
Product ABC_123 starting price is $40
Product ABC_456 starting price is $20
Product ABC_678 starting price is $30

I've found some similar posts but they all use an sObject Fast Lookup where you can assign each field retireved to a variable and display it that way. I thought about adding a second loop / assignment but I need to process them in the same order.
Any help appreciated.
User-added image


User-added image