Adding Attachments to a Request in PowerShell

Adding Attachments to a Request in PowerShell

Requirement:
This article guides users on how to add attachments to a request in PowerShell from a specific location. The provided PowerShell script simplifies the process of appending attachments to a request, facilitating efficient automation.

Steps to follow:
  1. Extract the zip in the location:  <sdp_home>\integration\custom_scripts
  2. Update the script the below informations:
    1. Hosted build info and Technician key - Refer:  https://pitstop.manageengine.com/portal/en/kb/articles/creating-integration-key
    2. File name and file path.
  3. Create a text file addAttachment.txt in [SDP_Home]\integration\custom_scripts\executor_files directory. 
    1. Sample content:  powershell.exe appendAttachmentToRequest.ps1 $COMPLETE_V3_JSON_FILE
  4. Create a custom trigger: Goto Admin > Custom Trigger > Action Type: Execute Script addAttachment.txt
  5. Configure this trigger to get invoked for every ticket being created. Invoking condition can be modified as per requirement.

                  New to ADSelfService Plus?