Q: Could you assist, can I include a PDF page count next to the filename after moving PDFS in my Rule Events email notification. Also a total number of files. Thank you for your time.
A: Yes this is posible using some Pascal Script.
- We used a Windows folder as Source
- File Filter Setup:
- We only want to move pdf files ( *.pdf )
- Pascal Script Setup:
- Enable and add the following ‘On Rule Begin’ script: link
- psVIA := 0; will set the Integer parameter %VIA to zero
- psVSA := ”; will clear the String parameter %VSA
- Enable and add the following ‘On Rule Begin’ script: link
- Rule Events Setup:
- Enable ‘On Success’ event and enable ‘Enable Mail’
- In the Mail setup we’ll use the parameters %VSA and %VIA
- %VSA will contact the filename and page count
- %VIA will contain the total number of files
- Don’t forget to enable ‘Trigger mail event after scan’ because we want a single email ofter the move is done:
- Function Setup:
- Enable ‘Exit Cyclus on Error’ because the second Destination (Pascal Script) should not be executed when the move of a source file is not successful.
- Destination Setup:
- First Destination must be the actual Desination of the Source Files, in our case a Windows folder
- Second Destination is a Pascal Script which will count the total number of files successfully moved and will keep track of the pages of each pdf file.
- This info is used in the Rule email event.
- Add the following ‘Destination’ Pascal Script: link
- RunTime Log Result:
- Email Result:
If you need any help with this ‘include pdf page count’ request, please let us know.
Best Regards,
Limagito Team
#managedfiletransfer #filetransfer #filemanagement