Hi Michael,
I think uou’re on the right track with your implementation. The error occurs because you’re trying to show a list of objects directly in a message popup, which isn’t supported.
When you use Range = All in the import mapping, the API response is stored in a list of objects. That list can then be committed to the entity and displayed on your overview page, which seems to be your actual goal.
If you also want to show a confirmation message, you have two options:
Iterate over the list and build a custom message (or just display something simple like “Update successful” instead of the full list).
As Erwin suggested, import by import from json, then use that string in the message popup if you need to display the raw response.
Once you close the popup, you should see the imported data on your overview page as expected.
Hope this helps !!
If you create a json structure like below
Then create an import mapping based on this json structure the data is completely imported. In an example I have this microflow:
In the first action I create a string with [{"fname":"data_A.csv"},{"fname":"data_B.csv"},{"fname":"data_C.csv"}]
In the second action I import the data with the mapping below:
And the result is shown in the overview page:
The import should be paossible by using the import mapping directly in your response handling of yoou rest call.
Hope this helps in finding the solution.
thank you both for your help - thank you Erwin for the detailed solution. I was able to find a solution prior to the post being updated and this in line with what Neha suggested - after selecting Range as ALL from CALL REST (GET) block, I created a string from the results and iterated over that to - the ensure each elements in the json object was committed to the entity as a separate object:
As I want to check intermittently for files added to the directory I also added retrieve and delete objects activities prior to the call - I will also suppress the return to a success message.
thank you again and in future if I find a solution to a posted issue I will update more efficiently.
Regards,
Michael