retrieving an image with Call REST Service widget

0
Hello everyone, I'm struggling on retrieving several images from a gitlab. I have an entity Application that's associated in a 1-1 association to an entity Image which is a specialization of System.FileDocument (I know there is System.Image but I explain later). At the beginning of my microflow, I fetch a list of application objects and iterate on the list members in a for loop. Inside the loop I call another microflow in which I want to retrieve the application's logo that's on the git repo. In order to do so, I use a Call REST action which I configure to store the response in a fileDocument and select the Image entity. I then return the newly created Image to the first microflow where I associate it to the curent Application and commit it. However, outside of the loop I retrieve all the Images from database to check if they are all there and I only get the image of the last application of the loop.   I'll enjoy a little help on this one. Thanks in advance !
asked
4 answers
0

Here is my first microflow

Capture d’écran 2025-08-13 à 09.08.51.png

 

Here is the second one :

Capture d’écran 2025-08-13 à 09.09.05.png

answered
0

Where does Raw_imageList come from?

I would create a list of Raw_images and whenever I get an image, add it to the list in the loop, then commit the list after the loop.

You seem to be doing most of this, but not actually adding the image to the list

answered
0

Hi Clement,

Inside your loop after Get_app_logo microflow take a change list activity and select $Raw_imageList inside the list section &  add this $raw_image object.

 

image.png

answered
0

How are you associating the raw_image object to the Application object? Do you need to add a Change Object after you get raw_object to associate it to Application_i? You also need to add raw_image to Raw_ImageList after doing this.

 

Good luck!

answered