Andrew_A
Nintex Newbie

Array inside a Dictionary variable

Hi,

 

I am trying to call an API, but one of the field the API needs is an array.  I have tried building the dictionary with a text field with the content

["6vxg9uMmJr2rIU8G6kXsGP","7rxJ5IA4ZtfCQAVzkakPv1","17AIagq7bv6ufY09QnddUF"]
 
but what the API receives is:
 
"topicIds":"["6vxg9uMmJr2rIU8G6kXsGP","7rxJ5IA4ZtfCQAVzkakPv1","17AIagq7bv6ufY09QnddUF"]"
 
The surrounding quotes are causing it to fail. 
 
Is there any way to call a web service now without using a dictionary variable?  
Thanks
Andrew
 
0 Kudos
Reply
1 Reply
nico
Nintex Newbie

Re: Array inside a Dictionary variable

Why build you collection with "Add item to collection" and after add it to you dictionnary ? 

Like : 

nico_0-1619185599313.png

 

nico_1-1619185638349.png

 

nico_2-1619185644976.png

 

 

And the result : 

 

nico_3-1619185674904.png

{"topicIds":["6vxg9uMmJr2rIU8G6kXsGP","7rxJ5IA4ZtfCQAVzkakPv1","17AIagq7bv6ufY09QnddUF"]}

 

0 Kudos
Reply