Home > Forum > General > Using a http request to pull data and map data to populate Word Template.docx

Using a http request to pull data and map data to populate Word Template.docx
0

Hi, Is it possible to Use a http request to pull data from an API and map those retrieved data to populate a Word Document Template.docx?
For context the retrieved data is in table format.

I would appreciate it if the steps on how to do this is provided.

Thanks and Regards,

In reply to: Daniel Krüger (Cosmo Consult)

Hi,

this is not possible. You could only populate an item list with the request and display this item list in the document.

Best regards,
Daniel

Hi Daniel,

Thanks for the reply. I'm still quite new to Webcon so I'm wondering if there is there a documentation to achieve that?
I would be working on retrieving some data on an API and my goal is to display those data on the task form.

Regards,

MVP
In reply to: S Blue

Hi Daniel,

Thanks for the reply. I'm still quite new to Webcon so I'm wondering if there is there a documentation to achieve that?
I would be working on retrieving some data on an API and my goal is to display those data on the task form.

Regards,

Hi,

in case you need documentation for the word file creation you can read up on it here:
https://community.webcon.com/posts/post/webcon-bps-word-modern-how-to-use/328/3

I'm using a REST data source to populate an item list in one of my processes.
1) The REST data source uses a field value from the instance using the "All form fields" node. This data source can therefore not be used with any other processes.
2) The replace item action uses this data source.

Alternatively you can use the REST action and map the response to an item list.
https://docs.webcon.com/docs/2025R1/Studio/Action/Integration/Action_RESTWebServiceInvoke#id_2

I've used both option in different cases.

I have one remark.
I'm sometimes running into issues that not the latest information are displayed in the Word document. Most of the time the solution is to update the in the automation of the path and create the document in the OnEntry of the next step.

Best regards,
Daniel