You are viewing limited content. For full access, please sign in.

Question

Question

Import document using Laserfiche API FORMDATA

asked on October 27, 2022

Hello,
First of all, I really appreciate the support you can give me.
I am looking for an example about Import document using Laserfiche API FORMDATA, with Document in Blob format, 
this document comes with a set of metadata, for example:
{
    “archivos”: array, /* archivos formato blob */
    "tipodocumento": int, /* 1: DNI, 2: CE, 3: Pasaporte, 4: PTP/CPP */
    “numerodocumento”: string, /* número de documento */
    "fechanacimiento": string, /* fecha de nacimiento */
    "fechaemision": string, /* fecha de emisión solo para DNI*/
}

The steps that I had planned that the workflow must comply with are the following:

- Process that performs the import of the document to the Laserfiche repository.
- How to get input ID of the last imported document in the Laserfiche repository?
- To update the metadata of the imported document, how would you insert it in the template?
- Then trigger an external Laserfiche API call from the same workflow, sending the information in a body.

 

Thank you for your support.

Gustavo Mayaute

0 0

Replies

replied on November 2, 2022

Hi, if you are trying to use the Laserfiche Import API to import a document and set template metadata at the same time, then please check this guide. The guide includes an example of how to use the Import API.
https://developer.laserfiche.com/guides/guide_importing-documents.html

The response from the Import API will contain the entry ID for the new document.

 

If you are new to the Laserfiche APIs, then also check out our guide on how to get an access token so that you can start making API calls

https://developer.laserfiche.com/guides/guide_authenticating-to-the-laserfiche-api.html

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.