How to declare a Priority type in Uipath

Hi Team,

Please see the above screenshot, how can i declare the priority type variable in uipath as low, high and undefined


do you mean QueueItem.Priority?


@q.gio i am calling a SOAP request which is having the parameters i need to pass, but not sure how to pass the pMinPriority parameter, you can see below image.

@Shaik.Yezdani ok, so I think you are looking for this?


@q.gio The variable type is not above, please find the below image for variable type. I tried above but it is not taking.


I didn’t find the type of variable “UiPath.Core.Activities.UiTree.Priority” (In which package is it?).
But you can’t use a string in that field, you should use its own type “UiPath.Core.Activities.UiTree.Priority”.
If you type all the same string in that field (“UiPath.Core.Activities.UiTree.Priority”) followed by point “.”, IDE should show options.


@q.gio I have given the string to get the type of of the Variable,
actually if i am trying the same soap request along with the XML body it is giving me proper response. Same i have to do through Uipath, I tried same through HTTP request but getting 500 as response. If i want to go through SOAP Request Activity it is asking me to provide priority type parameter which i am not able to provide. Can you help me to pass the XML body through HTTP Request? below is the XML body

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi=“” xmlns:xsd=“” xmlns:soap=“”>


<GetTasks xmlns="">
















    <string>SwIFT OP</string>







so I don’t understand, maybe you are confusing something. If these parameters are in SOAP call to build XML you should use string type (so should not use “Priority” type).

Usually, XML accepts type like:

  • string
  • decimal
  • integer
  • boolean
  • date
  • time