---
title: "LINQ syntax differences: Devo APIs vs search window"
canonical: "https://docs.devo.com/space/latest/95322158/LINQ%20syntax%20differences%3A%20Devo%20APIs%20vs%20search%20window"
format: markdown
---
> Macro (toc)

Due to architectural differences, the LINQ syntax presents some particularities in the [Devo APIs](https://devodocs.atlassian.net/wiki/spaces/latest/pages/95128251) and the [search window](https://devodocs.atlassian.net/wiki/spaces/latest/pages/95202447) of the Devo app.

Therefore, keep in mind that copying a LINQ query from the search window and pasting it into an API request, or vice versa, might not work. Before examining the differences explained below, you can visit [Build a query using LINQ](https://devodocs.atlassian.net/wiki/spaces/latest/pages/95191261) to know the standard procedures when working with LINQ.

> ⚠️ **Alerts API**
> ⚠️ 
> ⚠️ Note that due to technical reasons, the [Alerts API](https://devodocs.atlassian.net/wiki/spaces/latest/pages/95128644) is the only API that uses the LINQ syntax used in the [search window](https://devodocs.atlassian.net/wiki/spaces/latest/pages/95202447) of the Devo app. This is indicated in the different sections below.

## Mlevalmodel operation

`mlevalmodel` operation is not supported in search window. Use this operation in APIs when you want to work with models you uploaded in Model Management.

| **Search window** | **Devo APIs** |
| --- | --- |
| `Not supported` | <u>Query examples:</u><br>```
from "datatable"
select "fields"
mlevalmodel("domain", "ModelName", "ModelFields") as "NameNewField"
```<br><u>Example</u>:<br>```
from demo.ecommerce.data
select
  split(referralUri, "/",2) as domain,
  float(lenght(domain)) as lenght
  shannonentropy(domain) as entropy
  float(countbyfilter(domain, "aeiuoAEIOU")) as p_vowels,
  mlevamodel("example_domain", "example_test", lenght, entropy, p_vowels) as prob
  ifthenelse(prob>0.8, "dga", "legit") as type 
``` |

**Refer article:** [Model Management](https://docs.devo.com/space/latest/222035993/Model+Management)