I created this business process to generate a label to be stuck in a file box.
In this process the 'content' field must accumulate the 'document name' values from all documents that have the same value for the '#box' field and the associated 'box tag'.
Next, a PDF document is filled with the values stored in the tokens
THE PROBLEM:
It turns out that it generates a PDF for each "content" token instead of creating a single PDF with all the values of the "content" field
Can you help me with this problem?
Down the workflow:
Create PDF Box Label:
Workflow Details:
Connection Profiles:
- INFODOCS (pc005; INFODOCS; wf)
Attachments:
- label cx file.pdf
Corporate Process Options:
• Can be booted on Laserfiche clients connected to 'INFODOCS'
• Can be viewed on Laserfiche clients connected to 'INFODOCS'
• Status started: Running
• Status Completed: Completed
• Status Canceled: Terminated
Try-Catch:
Attempt { }
Capture (Exception)
Try Branch:
Assign Token:
Create the following tokens:
• %(year)
• %(box)
• %(Content) (multiple-value)
• %(Rate)
Search Repository:
Search Query:
({LF:Tags="box"})
If a search is a shortcut, keep it as a shortcut
Not case sensitive. Sensitive to accent:
Return: All results
Additional properties:
Properties of field options:
Sorting properties:
For Each Entry:
Iterate through the entries in:
(Search Repository::Output Entries)
Find Entry:
Find the entry with the ID: %(ForEachEntry_CurrentEntry_ID)
Additional properties:
Properties of field options:
Retrieve Field Values:
Entry: (For Each Entry::Current Entry)
Field values to retrieve:
• YEAR
• BOX
• CLASSIFICATION
Add Values:
Modify the following tokens:
• %(year) = %(RetrieveFieldValues_year)
• %(box) = %(RetrieveFieldValues_box)
• %(Content): Append %(ForEachEntry_CurrentEntry_Name) (multiple-value)
Assign Tags:
Entry: (For Each Entry::Current Entry)
Remove Tags: box
Create Entry:
Name: Box Label %(box)
Type: Document
Volume: <Use default volume from parent folder>
Destination: \new
Attach Electronic Document:
Attach cx arq tag to (Create Entry::OutputEntry)
Source: Server Attachment
If an electronic document already exists: Replace the electronic document and do not record a warning
Track Tokens:
Report the value of the following tokens:
• Content
Fill Out PDF Form:
PDF: (Create Entry::OutputEntry)
Master Form: cx file label
Merge field content with image
Fields to be filled:
• YEAR = %(RetrieveFieldValues_YEAR)
• Rating = %(RetrieveFieldValues_CLASSIFICATION)
• Cash = %(RetrieveFieldValues_CAIXA)
• CONTENT = %(Entry Name)
Catch Branch:
Capture (Exception)
End Workflow:
Complete current and primary workflows
The PDF document is this:
Where the "content" field should receive all "document name" values from the token