CMDB Integration Studio Application Data Source Before Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am looking for help understganding Before Script in CMDB Integration Studio Application Data Source.
Specifically looking for information how to see what is in the input variable passed to the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi Olsztyniak, In CMDB Integration Studio (CIS), when you use a Script as part of a Data Source (usually inside a Data Ingestion Plan), the platform passes data into your script through a variable typically named:
input
1. How to View the Input Variable
Use gs.info() Logging
You can print the entire input object:
gs.info("CIS Input: " + JSON.stringify(input));
This works because in CMDB Integration Studio, the input variable is usually an object containing:
payload
data source parameters
connection values
pagination tokens, etc.
After adding this line, run the Data Ingestion Plan and check:
System Logs → All → Messages
Search for: CIS Input:
2. Use gs.print() in a Scoped App Script
If running in a scoped app (cmdb_integration_studio):
3. Use the Script Debugger (best for interactive debugging)
Go to Script Debugger
Choose Scope: CMDB Integration Studio
Run the Data Ingestion Plan
Breakpoints in your script will pause and allow you to inspect variables (including input)
Summary
To see what’s inside the input variable passed to a CMDB Integration Studio script:
| gs.info(JSON.stringify(input)) | Quick logging to system logs |
| Using Script Debugger | Full inspection + breakpoints |
| Return-value logging | Seeing transformed output |
Let me know how the above three points has worked for you. Or share us how you were able to fix this if this has already got the solution with your own research
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
In continuation here is a sample minimal script
CIS Script with Input Inspection
"/
/"