Content Management and Capture

 View Only
  • 1.  How to transmit custom attribute to Datacap through API

    Posted Thu November 10, 2022 08:56 AM
    Hi

    Custom is calling Datacap API to create batch and proceed files following Datacap workflow. How can we transmit custom attributes to this batch through 
    API, then Datacap actions can use these attributes? 


    Thanks,
    Wei Li


    ------------------------------
    Wei Li
    ------------------------------


  • 2.  RE: How to transmit custom attribute to Datacap through API

    Posted Fri November 11, 2022 02:56 AM
    Hi Wei Li,

    We can send custom attributes using batch level variables while creating a batch. The below CreateBatch request will create batch level variables MyVariable1,MyVariable2.

    <createBatchAttributes>
    <application>TravelDocs</application>
    <job>MainJob</job>
    <pageFile>
    <B id="">
    <V n="STATUS">0</V>
    <V n="TYPE">TravelDocs</V>
    <V n="MyVariable1">abc</V>
    <V n="MyVariable2">def</V>
    </B>
    </pageFile>
    </createBatchAttributes>

    Thanks,
    Geetha

    ------------------------------
    Geetha Jini C
    ------------------------------



  • 3.  RE: How to transmit custom attribute to Datacap through API

    Posted Tue November 15, 2022 12:17 AM
    Geetha,

    Thank you! It works.

    ------------------------------
    Wei Li
    ------------------------------



  • 4.  RE: How to transmit custom attribute to Datacap through API

    Posted Tue November 22, 2022 09:53 AM
    Edited by Geetha Jini C Tue November 22, 2022 09:55 AM
    Hi Wei Li,

    I don't have idea on json request for CreateBatch API.  It will be helpful if you could share the same, if you can figure out the json request.

    Thanks,
    Geetha

    ------------------------------
    Geetha Jini C
    ------------------------------