How to upload JSON type text into queue

Hi,

How can i upload json into queue. I’m having a key-value pair and json type combined string in my hand. How can i put it into queue.

Please let me know?

Hi @Salman_Faries_V_S

When you are creating the queue in the Orchestrator you have a option called Specific Data Json Schema. In that you can upload the Json file.

Check the below image for better understanding. Then where you want to use key value pair you can use it.

Hope it helps!!

No, i’m not asking about JSON Schema.

I need to add a queue item, which will be a key value pair. How can i add the above mentioned text there?

Okay @Salman_Faries_V_S

give a try on bringing the JSON to a string and add it to the specific content dictionary under a particular key or as an argument.

Hope you understand!!

Hi @Salman_Faries_V_S

Assign activity:
dictData = Newtonsoft.Json.JsonConvert.DeserializeObject(Of Dictionary(Of String, Object))(str1)
Add Queue Item activity:
QueueName = "YourQueueName"
Priority = QueueItemPriority.Normal
Item Collection = dictData


Output

Hope it helps!!

1 Like


please help me,

  1. we are storing the text file as str variable
  2. we are converting string to JSON
  3. Then we are converting JSON to Dictionary variable
  4. Then we are uploading, Dictionary variable in queu.

please help , what mistake i have made?

@Salman_Faries_V_S
Can you show what is the error you getting

@Salman_Faries_V_S
Check the Type Argument

1 Like

@Salman_Faries_V_S
Find the solution in the sequence.xaml
BlankProcess4.zip (5.1 MB)

1 Like

Thank you so much for your help! it means a lot to me!


Why i’m facing this at this line?

@Salman_Faries_V_S
Check your input json text,It contains Errors like Missing of quotes,extra characters or something else.

Tnx , i found that!


How can i convert this JSON format to string? - Will you please reply to this topic as well?

@Salman_Faries_V_S
Sure will check let you know

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.