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

Hi,

do you mean QueueItem.Priority?
image


Gio

@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.

image

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

Gio

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

Hi,

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.

Gio

@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=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“XML Schema” xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”>

soap:Body

<GetTasks xmlns="http://twtelecom.com/">

  <pAttrName>FunctionalRole</pAttrName>

  <pAttrValues>

    <string>ITProduction</string>

  </pAttrValues>

  <pTaskTemplateIDs>

    <int>33081</int>

    <int>33162</int>

  </pTaskTemplateIDs>

  <pMinStartDate>2020-09-26T21:31:52</pMinStartDate>

  <pIncludeCompleted>false</pIncludeCompleted>

  <pReturnMilestoneInfo>true</pReturnMilestoneInfo>

  <pReturnTaskTypeInfo>false</pReturnTaskTypeInfo>

  <pReturnTaskAttributes>true</pReturnTaskAttributes>

  <pCheckAvailability>false</pCheckAvailability>

  <pTags>

    <string>SwIFT OP</string>

  </pTags>

  <pMinPriority>Undefined</pMinPriority>

  <pReturnJeopardyInfo>false</pReturnJeopardyInfo>

</GetTasks>

</soap:Body>

</soap:Envelope>

Hi,
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

Gio