The CreatorCon Call for Content is officially open! Get started here.

How to pass comma separated variable values to ansible through integration?

User205031
Tera Contributor

Hi All,

 

I am working on ServiceNow Catalog Integration with Ansible. I have the below requirement:

 

There are 2 fields - A, B mapped to Ansible fields - C,D

 

A field has values -> a1,a2

B field has values -> b1,b2

 

I want to pass values from ServiceNow to Ansible fields like this :

for e.g :

 

A,B

a1,b1

a2,b2

So that in Ansible it gets updated to :

 

C,D

a1,b1

a2,b2

 

How we can achieve this?

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@User205031 

are you trying to form JSON for this?

share the complete script

Is that catalog item having 2 variables with those choice values?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@User205031 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@User205031 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader