ServiceNow and File share integration

gowdash
Mega Guru

Dear Experts,

We have an use case to integrate ServiceNow with file share. At certain point in a CSM case, we need to trigger this integration to create Subfolder in a file share with a specific naming convention. Can someone guide me how to implement it?

 

Use case

---------------

1. CSM Case is Created

2. Assigned To person updates a specific field and saves the case

3. An integration should trigger to create a folder in the file share where the name of the folder being the Case Number

4. Return the path to the newly created folder and update it in the Worknotes of the case.

1 REPLY 1

N_H_
Tera Contributor

I know this is outdated but I wanted to offer a solution for anyone who is out searching how to accomplish this.

 

Mid Server executed Powershell.

 

You can use BR or events with specific values to pass by script to the ecc queue to run powershell scripts stored on the MID or you can use the Flow Designer, Action, Powershell Step to execute any powershell enabled process like  "New-Item -ItemType Directory".  We use this capability to create/modify folders and files. 

 

Flow Designer Powershell Step

https://www.servicenow.com/docs/r/yokohama/build-workflows/workflow-studio/powershell-step-action-de...

 

Without Flow Designer

https://www.servicenow.com/community/developer-articles/execute-powershell-script-from-servicenow/ta...