Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to get response variables in a ServiceNow Flow from 'Azure Create Subscription' Action

Balakrishna_ABK
Tera Guru
 

A1.png

 

a3.png
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)

1 REPLY 1

ayushraj7012933
Kilo Guru

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