How to get response variables in a ServiceNow Flow from 'Azure Create Subscription' Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
we are using AzureCreateSubscrption flow action to create record in Azure and inturn we are getting response in flow.
How to get this response variables to map to ServiceNow cmdb tables(
azure_vm_instance)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @Balakrishna_ABK ,
You’re on the right track — since the AzureCreateSubscription action is already returning a response, you just need to parse and map it properly in Flow Designer.
Step-by-Step Solution
Step 1: Use Response Body
From your action output:
Use Response Body as input (this contains the API response)
Step 2: Add Parse JSON Step
Add action: Data → Parse JSON
Input:
Data → Response Body
Click Generate Schema and paste a sample JSON response from Azure
Step 3: Extract Fields
After parsing, you’ll get structured outputs like:
subscriptionId
vmName
resourceGroup
(Depends on your API response)
Step 4: Map to CMDB
Add action:
Create Record / Update Record
Table: cmdb_ci_azure_vm_instance
Map fields:
Name → vmName
Subscription ID → subscriptionId
Resource Group → resourceGroup
