Skip to main content
Nintex Community Menu Bar

Array inside a Dictionary variable

  • April 15, 2021
  • 1 reply
  • 13 views

Forum|alt.badge.img

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
 

1 reply

nico
Forum|alt.badge.img+10
  • Rookie
  • April 23, 2021

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

Like : 

 

 

 

 

And the result : 

 

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