Save As PDF Control to create K2 Workflow to send a mail using smart form with PDF

Advertisement


Save as PDF Control   
     We can use this control, when we have to create PDF has a same Form or View at a particular time when an event is executed.


We can easily create workflow to send a mail with PDF using K2 smart form with save as PDF control.

Navigate to your list, go to ribbon and Select the Application from K2 as shown in below figure.

         We are going to create workflow for New Employee Form, Select New Employee Form and Click on Edit.
    In Layout section add Save As PDF Control from the control panel as shown in fig and Click Finish.

    Now we have   “Design Workflow” using same form “New Employee”. Right click on the form & Select Design Workflow.
  Check the smart Form is submitted, Select the Form “New Employee” & default name will create for Workflow. If you want you can change the name of workflow. Click “OK
          
                     Drag Send E-mail to Configure & Click Next to Wizard Step
  Add to Address Email & Originator name from the Workflow context.

         
      Now add attachments -> PDF from the Smart Object PDF File as shown in below Fig.
                        
   It will open PDF window, Create new data field “PDF ID” with type Integer, and drag field to value. As shown in fig below.  
                      
                          
                           Click "OK".
Now go to File. Save & Deploy the Workflow.

 
Again go to New Employee Form & Edit, New Employee form -> Rules -> New Employee (Default) – select “Save button is clicked” -> Edit Rule.
     


Add the below rules from the action.                                                                                                  
i) Execute a control’s method. (Select Save PDF method)
     -> Click on Configure -> Drag Emp name to File Name. Click Finish.
ii) Start a Workflow (Select Employee Workflow)
- >    Click on Configure -> Drag Save as PDF to PDF ID. Click Finish.
           Click Ok.                   
                                                                                                                               
     Finally Click Finish & Right click the Form and Check in New Employee FORM.                                                                                                                                

   Go to Employee list in SharePoint. Add New Item into list & save.   

  
I got the mail with PDF Attachment.
                                
                    PDF Format will look like below.


   Hope its help. :)                                                                                                        

Advertisements
SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. While the record utilized in the precedent is from a Macintosh PC, similar standards apply to both Mac and Windows stages. https://es.altoconvertpngtopdf.com/

    ReplyDelete
  4. Have you been a competent computer programmer feeling disillusioned with having to browse over sixty miles daily forward and backward through metropolis office? task list templates

    ReplyDelete
  5. Hotmail login Most of us had heard the name of Hotmail. First free email service in the early years of the 2000s. I am sure many of you had an account there too. Today we will talk about Hotmail and also will discuss how we can use the new version of this email service in 2020.

    ReplyDelete