Hi there,
I am working through the "Exposing Application Data using REST GET" tutorial and although I can connect to the URL using suggested methods and Postman, the first part of the tutorial gets a list of Employees but I only see one record. Is this how it should be?
Postman output:
"Result": { "Success": true, "ErrorMessage": "" }, "Employees": { "Name": "Amy Peters", "Email": "AmyJPeters@teleworm.us", "Gender": "female", "City": "Wattsburg", "State": "Pennsylvania", "Country": "United States", "Occupation": "Monetary economist" }}
The tutorial output suggests checking from reqbin.com where the screen output shows multiple records in the response.
Now in my assignments in the list action I have added
Although the tutorial was a bit unclear on how this mapping should work.
Because I've added "Current" in there is that an issue. It wouldn't allow exact mapping.
Thanks for your help
MickT
Hi @mick Tinker,
I am glad my work helped you. If you need any other help do reach out to me. But if your question is solved can you please mark the solution, if it worked well for you?
Regards,
Rounak Rawat
Hello,
I think you need to make output of your API List of structure not only one object and assign return of your aggregate to output list of structure .
Hii @mick Tinker,
I reviewed your code and noticed that you are assigning with mapping where a list would be more appropriate.
Below attached an oml file for your reference might be helpful .
Hi Rounak,
Thanks for your response, most helpful. I think in the end I was misunderstanding the assign in the api method. Correctly configured it should look like this:
Also, the tutorial says click on the data types to open the editor but I got this:
which confused me as well. Easy done!
Back on track now, Thanks again.