I need to add a ListMail Message to Orchestrator, list already on strind dictionary

Hello Team,

I need to add a ListMail Message to Orchestrator, list already on strind dictionary. i can see it on the argument before the add to queue, but is loading empty items, what can i do?

I may misunderstand you. But you are trying to add a List(Of MailMessage) into a QueueItem? Could you show me what you are trying to add to the queue?

But if so, you need to convert the List to a JSON-string before adding it to the queue.

Newtonsoft.Json.JsonConvert.SerializeObject(TheVariableYouNeedToAddToTheQueue)

When reading it from the queue, you need to deserialize it.
Newtonsoft.Json.JsonConvert.DeserializeObject(Of List(Of MailMessage))(TheJsonStringFromTheQueue)

@ANDRES_ALVAREZ

Welcome to the community

You cannot add list directly to orchestrator queue…they do not support…

If you still want to add try to serialize the string and add it and after retrieving you can deserialize it again

Newtonsoft.Json.JsonConvert.SerializeObject(yourListVar)

Alternately…for mail messages…each message will have a uniqye message id…you can add that as well…so that when you retreive you can use one more get mail message activity with filter on message id and original message is retrieved again

MailMes.Headers("Message-ID")

Hoep this helps

Cheers