PDFtoServiceCatalog

From SMTX Wiki
Jump to navigation Jump to search

So, you made a PDF in the process, but now it needs to go to the ServiceCatalog. Just using the created link will not get it over there :(

what you need to do :

1. Create folder on the server : “D:\Temp”
2. Added variable that stores the location of the file
- name: Report local filename
- value: D:\Temp\Maturity Review-#REPLACE-STEP-PROCESS-DateStarted-yyyyMMdd#-#REPLACE-FORMFIELD-serviceguid#.pdf

3. added a step of the type 'save file', before the step where you add the document to the SC

- content: #REPLACE-PDFREPORTCONTENT-61# 
- Location : use the variable from step 2


4. in the step 'add report to SC', use the variable from step 2 as documentpath
- WS: Services: add document
- DocumentPath: use variable from step 2

5. Finally, a step to remove the local file form the server
- Step name: Sample proces:Remove report from filesystem
- Step type: Execure application
- Location: cmd.exe
- Parameters: /c del "#REPLACE-VARIABLE-2741-Report local filename#"


Sample process: https://ssp-test.auto.contiwan.com/Workflow/Admin/ProcessAddEdit.aspx?genericid=4624