Mail merge on workflow

I am working in 7.2b and have a workflow step in which I need to create a merge document. The mail merge works fine but when I go to the record in the documents tab I see that the document type is blank. Why is it that when I create a mail merge manually it saves the document type but when creating it in workflow, it does not?

  • 0

    Hi,

     

    When you create mail merge document using Workflow. There is no option to set the Document Type on this screen. However to set the Document Type, we can use the Execute SQL workflow action. Here are the steps that you need to do set the Document Type for the merged document.

     

    Consider you are merging a document for Case entity.

     

    1. Add a new workflow action and copy below query in sql statement

     

                update Library set Libr_Type = 'Proposal'

                where Libr_LibraryId =

                (

                            select top 1 Libr_libraryId from Library (nolock)

                            where Libr_CaseId =#Case_CaseId#

                            order by Libr_LibraryId desc

                )

     

    1. Set the Order as 2. (set order 1 for Mail Merge Document workflow action.)
    2. Save the workflow and Activate Workflow.

     

    Hope this helps!

     

    Sincerely,

    Dinesh

  • 0 in reply to Greytrix

    Dinesh that is a good idea - I'll put that into the workflow and I'm sure it will work. Thanks for the assistance.