Execution of PowerShell script in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
13 hours ago
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12 hours ago
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