Adding different fileds for each input file to Same Queue

Hi,

I am fetching different Fields from each input file using Document understanding.

Can someone guide me how to add these fields (Varies for each input file) to same Queue in orchestrator.

Thanks.

Store Extracted Data:

Store the extracted fields in variables within your workflow. Each field from each file should be stored in a separate variable.

Queue Configuration:

Use the “Add Queue Item” activity to add items to the Orchestrator Queue. Configure the Queue Item properties with the necessary information. You can set the queue item properties to include the extracted fields as input parameters.

Add Queue Item Activity:

For each input file, use the “Add Queue Item” activity to add an item to the Orchestrator Queue. Pass the extracted field values as parameters when adding the item.

For ref:

https://youtu.be/2B6rcDa7h0g?si=4H4bhrg_rD3wpCnM

@krishbcd

Can you please show an example…are you saying values are changing or keys also?

Cheers

I have sorted this out.

  1. I have different input files.
  2. fetching different filed and corresponding values from each file.
  3. Looping through the folder and for each specific file, writing the extraction results as it is to the queue.
  4. In process 2, reading the complete extraction results and creating task in action center.
1 Like

@krishbcd

  1. Read Document Data: Use Document Understanding activities to extract fields from each input file.

  2. Create a Dictionary: For each file, create a dictionary to store the extracted fields. The dictionary should have keys corresponding to the field names and values as the extracted data.

  3. Add to Queue: Use the Add Queue Item activity to add each dictionary (representing the fields from a file) to the Orchestrator queue. Set the ‘ItemInformation’ property to the dictionary.

Repeat these steps for each input file, and you’ll have data from different files in the same Orchestrator queue, each stored as a separate dictionary.

cheers…!

1 Like

Hi @krishbcd

Assign activity:
dictFields = New Dictionary(Of String, Object)

Assign activity (for each field):
dictFields(“FieldName1”) = ExtractedValue1
dictFields(“FieldName2”) = ExtractedValue2
’ Add more fields as needed

Add Queue Item activity:
QueueName = “YourQueueName”
ItemData = dictFields

Hope this helps