I am using Add document to Zip Smart service, but the generated zip is empty.
following are the inputs:
Base Document: no valueCreate New Document: true()New Document name: ="documents for "&pv!drawRequestId&" "&rule!DW_formatFulldateTime(now())&".zip"New Document Desc: No valueSave In Folder: cons!testFolderExisting Document: no valueDocuments to add: todocument(pv!documents_cdt.documentId)Document Paths: no value
Thank you.
Discussion posts and replies are publicly visible
Hi shwetad,
Document Paths can not be null so create a expression rule to find the path of documents :
Input : ri!ListOfDocuments (here you need to pass todocument(pv!documents_cdt.documentId) )
Code :
load(
local!AllDocumentName: a!forEach(
items:tointeger(
ri!ListOfDocuments
),
expression: document(fv!item,"name")
local!DocumentName: apply(
stripwith(
_,
"\/;:“|?’><*"
local!AllDocumentName
a!forEach(
expression: local!DocumentName[fv!index]&"."&document(fv!item,"extension"))
)
Use this expression rule in Document Paths.
I hope this will help you, Please let me know if it works for you.
Thanks
Shafaly