Execution of PowerShell script in catalog item

deepikakhan
Kilo Contributor

We have a requirement to execute a PowerShell script onChange or onSubmit of catalog client script and get the response before user submits the form.

Anyone has done similar activity before or has any idea? We browsed few articles on community but so far no luck. 

2 REPLIES 2

RaghavSh
Kilo Patron

@deepikakhan The powershell script will be executed through flow or workflow and for both of them you need the catalog item submitted.

 


Raghav
MVP 2023

Rafael Batistot
Tera Sage

Hi @deepikakhan 

Running a PowerShell script from a catalog client script (onChange or onSubmit) in ServiceNow is not directly supported due to platform architecture and security constraints. However, there are workable alternatives using server-side execution via MID Server and Flow Designer or Script Includes. 

Why you not use a Business Rule before > insert /update