I am using the API of Documizers to generate documents outside our ERP. The formed document can be a .docx or a .pdf. I can retrieve both types and link them to a ERP-record so the user can view them in the application. First challenge is how to make it easy for the user to change and save the .docx without download/upload the document. The second challenge is using a process flow to form an .pdf from the last docx-version to mail it to the customer.
Anyone a bright idea ? π€
How to change/save an extern document with UGUI

Best answer by Mark Jongeling
Hi Peter,
I haven't used the API myself so much ether so my reply might contain some little errors:
The File API can be called by using the following URL:
/iam/appl/{table}({key})/appl.preview_{file_column}
In 2024.2, you can use Web connections to make requests to any services. As base url, set the Indicium URL like "https://[server].[com/nl]/[indicium location]/iam/[application alias]β e.g.
https://thinkwise.web/indicium/iam/appl/
Setup the authentication needed to authenticate the request.
Create an endpoint with either:
- {table}({key})/appl.preview_{file_column}
- Every {...} is an input parameter and need to get a value from Process action input parameter
- table_name({identity_value})/appl.preview_{file_column}
- (if you only have an identity as PK)
- table_name(βpk_column_1β: "{value1}β, βpk_column_1β: "{value2}β)/appl.preview_{file_column}
- (if you have multiple PK columns)
Create input variables where required.
Then Create an output parameter that will hold the binary data of the requested file. Note that this will be returned in the JSON as Base64 encoded binary. Check the Base64 decode option for this parameter and list the following XPath $.{file_column}.file.
That should make the Web connection perfect to be used π Then the process flow, create a process flow with the Web connection process action. Ensure the input variables are given the correct values and capture the output parameter in a process variable with varbinary(max) datatype. This is holding the .pdf file and can be written to a storage with Write file or send as attachment with the email connector.
It's indeed quite some work but it certainly will resolve the challenge. Feel free to create an idea for a "Create PDFβ process action. That would make the entire process a lot more simple.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.