Conditionality – Advanced Mode C# Tips

Case-Sensitivity

‌Please be aware that C# Script methods and properties are case-sensitive (e.g. “SubString” would throw an error, whereas “Substring” would work). Comparisons of text fields are also case-sensitive, so an expression of “customerName = ‘My Test Company’ would not match if the company name was “My test company”.‌‌

Enate Custom Data Type vs .Net Type

‌It is important to understand the .Net Type of the field or variable you are using to understand the properties and methods that are available:

Variables Data Type

.Net Type

.Net Type Information Page

Platform Name

String

Customer Name

String

Supplier Name

String

Contract Name

String (in English)

Service Name

String (in English)

Process Name

String (in English)

Service Line Name

String (in English)

Work Item Reference

String

Work Item Title

String

Started by Method

String – One of:

ByWorkflow

ByOperationalUser

BySelfServiceUser

ByRobotUser

ByEmail

FromTicket

ByOperationalUserInBulk

ByRobotUserInBulk

BySchedule

Last Action Started by Method

String – One of:

ByWorkflow

ByOperationalUser BySelfServiceUser

ByRobotUser

ByEmail

FromTicket

ByOperationalUserInBulk

ByRobotUserInBulk

BySchedule

Last Action Name

String (in English)

Last Action Reference

String

Work Item Schedule Period

String

Work Item Schedule Year

Integer

Work Item Start Date

DateTime (in UTC)

Work Item Due Date

DateTime (in UTC)

Last Action End Date

DateTime (in UTC)

Last Action Start Date

DateTime (in UTC)

Work Item is Overdue

Boolean

Work Item Due Date Is Overridden

Boolean

Work Item is Test Mode

Boolean

Last Action Completed Overdue

Boolean

Last updated