I am using Add document to Zip Smart service, but the generated zip is empty.

I am using Add document to Zip Smart service, but the generated zip is empty.

following are the inputs:

Base Document: no value
Create New Document: true()
New Document name: ="documents for "&pv!drawRequestId&" "&rule!DW_formatFulldateTime(now())&".zip"
New Document Desc: No value
Save In Folder: cons!testFolder
Existing Document: no value
Documents to add: todocument(pv!documents_cdt.documentId)
Document Paths: no value

Thank you.

  Discussion posts and replies are publicly visible

Parents
  • 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(

       items:tointeger(

         ri!ListOfDocuments

       ),

       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

Reply
  • 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(

       items:tointeger(

         ri!ListOfDocuments

       ),

       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

Children
No Data