> For the complete documentation index, see [llms.txt](https://docs.enate.net/enate-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enate.net/enate-help/builder/builder-2021.1/case-configuration/case-conditionality/conditionality-advance-mode-c-tips.md).

# Conditionality – Advanced Mode C# Tips

## Case-Sensitivity <a href="#a-case-sensitivity" id="a-case-sensitivity"></a>

‌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 <a href="#b-enate-custom-data-type-vs-net-type" id="b-enate-custom-data-type-vs-net-type"></a>

‌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:

| Custom Data Data Type | .Net Type                              | .Net Type Information Page                                      |
| --------------------- | -------------------------------------- | --------------------------------------------------------------- |
| Short Text            | String                                 | ​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​   |
| Long Text             | String                                 | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Email Address         | String                                 | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| List                  | String                                 | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Multi Level List      | String (each level separated by a “.”) | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Whole Number          | Integer                                | ​<https://docs.microsoft.com/en-us/dotnet/api/system.int32>​    |
| Decimal Number        | Decimal                                | ​<https://docs.microsoft.com/en-us/dotnet/api/system.decimal>​  |
| Date and Time         | DateTime (in UTC)                      | ​<https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​ |
| Date                  | DateTime (in UTC)                      | ​<https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​ |
| Checkbox              | Boolean                                | ​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​  |

| Variables Data Type              | .Net Type                                                                                                                                                                                                            | .Net Type Information Page                                      |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Platform Name                    | String                                                                                                                                                                                                               | ​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​   |
| Customer Name                    | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Supplier Name                    | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Contract Name                    | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Service Name                     | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Process Name                     | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Service Line Name                | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Reference              | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Title                  | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Started by Method                | <p>String – One of: </p><p>ByWorkflow </p><p>ByOperationalUser </p><p>BySelfServiceUser </p><p>ByRobotUser</p><p>ByEmail</p><p>FromTicket</p><p>ByOperationalUserInBulk</p><p>ByRobotUserInBulk</p><p>BySchedule</p> | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Last Action Started by Method    | <p>String – One of: </p><p>ByWorkflow </p><p>ByOperationalUser BySelfServiceUser </p><p>ByRobotUser</p><p>ByEmail</p><p>FromTicket</p><p>ByOperationalUserInBulk</p><p>ByRobotUserInBulk</p><p>BySchedule</p>        | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Last Action Name                 | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Last Action Reference            | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Schedule Period        | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Schedule Year          | Integer                                                                                                                                                                                                              | ​<https://docs.microsoft.com/en-us/dotnet/api/system.int32>​    |
| Work Item Start Date             | DateTime (in UTC)                                                                                                                                                                                                    | ​<https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​ |
| Work Item Due Date               | DateTime (in UTC)                                                                                                                                                                                                    | <https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​  |
| Last Action End Date             | DateTime (in UTC)                                                                                                                                                                                                    | <https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​  |
| Last Action Start Date           | DateTime (in UTC)                                                                                                                                                                                                    | <https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​  |
| Work Item is Overdue             | Boolean                                                                                                                                                                                                              | ​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​  |
| Work Item Due Date Is Overridden | Boolean                                                                                                                                                                                                              | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​ |
| Work Item is Test Mode           | Boolean                                                                                                                                                                                                              | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​ |
| Last Action Completed Overdue    | Boolean                                                                                                                                                                                                              | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.enate.net/enate-help/builder/builder-2021.1/case-configuration/case-conditionality/conditionality-advance-mode-c-tips.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
