Skip to main content

I've been learning HTTP callout (more on that in a blog here), and there is a lot of good information in my action's output that I can't access (it's an array of strings called "places") pictured below:

 

I've created an apex-defined collection variable.  I'd like to use it to update a Salesforce Object.I haven't been able to assign any of the outputs in "places" to a Salesforce object.  However, I am able to assign the values of strings that aren't part of "places" (i.e. country) to a salesforce object.

 

I noticed that it was listed as an apex-defined collection in the formula editor

 

apexcoll.pngI first tried creating an Apex-Defined variable. 

 

2apexcoll.png

This lets me access all of the values in the apex class I made, but they are empty.

 

I tried again by creating an apex collection variable and assigning the outputs from my action to the variable:

 

3apexcoll.png

This worked. 

 

4apexcoll.png

But I'm entirely stumped on my next step.  How can I assign these values from the collection variable to the apex-defined variables or fields on standard objects?  Thanks for your help.

 

#Flow #Spring23

4 answers
0/9000