Hi,
Is it possible to call an external REST api from datamapper to supplement data? What I want to do is call the api of a service that we have that creates shipping data and shipping label content. I then want to add some of the fields in the response to the data mapping so that I can use them as fields in the template. The call will contain data from the input file.
I was thinking of using JavaScript XHR so create the json for the call and to make the call with XMLHttpRequest. Would that work, where/how would be a good way to run the js? Any special considerations when doing so?
Thanks,
Fredrik