How to get queue item details like CreationTime, Status,?

Hi All,

I am getting queue details using “Get Queue Items” and now want to read some below highlighted details of each Item.

Step 1)
image

step 2)

step 3 ) Need to get below details of each item

Can someone please help me ?
Thanks,
Naresh

@Mandava_Naresh

  1. Yse a for loop and assign the output of get queue items in in argument and change the type argument from for loop properties to queueitem
    2 inside loop use item.ItemKey ,item.LastProcessinngOn, currentitem.creationtime ,item.processingexception.reason, item.status

Beware that item.processingexception.reason will be available only when status is failed so use a if condition and when status is failed only then get the reason else dont get it

if(item.Status.Tostring.Equals("Failed"), item.processingexception.reason,"")

Hope this helps

Cheers

Cheers

1 Like

Hi @Mandava_Naresh ,

You should be able to access the keys just add . and presss Ctrl+Space for the intellisense to show you the options :
image

Hi Anil,

Thanks for the response … I am able to get all the details except creation time …Can you help me in getting that ?

Thanks,
Naresh

@Mandava_Naresh

Please try this even this is in processingexception only

item.ProcessingException.CreationTime

cheers

How about creation date for success item ?

@Mandava_Naresh

I beleive the creationtime that is there inside peocessexception is the exception creation time but not the item creation time…

For that may be you need to use api calls…there ypu would have all the info …

Cheers

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