Power Query: M expressions
Evaluating and inspecting M expressions, including with external sources. Operations on this page: 9.
Evaluating and inspecting M expressions, including with external sources. Terms are in the glossary.
Operations on this page — 9
evaluate_m_expressionevaluate_m_expression_with_odata_feedevaluate_m_expression_with_sourcesevaluate_m_expression_with_web_connectorevaluate_m_expression_with_web_sourceinspect_m_expressioninspect_m_expression_with_odata_feedinspect_m_expression_with_postgresinspect_m_expression_with_sources
evaluate_m_expression
Section titled “evaluate_m_expression”Evaluates an M expression.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression" |
yes |
mText |
string | yes |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · evaluate_m_expression
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression" |
yes |
| outcome | MExpressionOutcome | yes |
Minimal JSON template
{ "operation": "evaluate_m_expression", "mText": "<string>", "requestedBackend": "native-desktop"}evaluate_m_expression_with_odata_feed
Section titled “evaluate_m_expression_with_odata_feed”Evaluates an M expression with an OData feed.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_odata_feed" |
yes |
mText |
string | yes |
| connector | ApprovedODataFeedDescriptor | no |
| privacy | PqPrivacyEvaluationInput | no |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · evaluate_m_expression_with_odata_feed
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_odata_feed" |
yes |
| outcome | MExpressionOutcome | yes |
Minimal JSON template
{ "operation": "evaluate_m_expression_with_odata_feed", "mText": "<string>", "requestedBackend": "native-desktop"}evaluate_m_expression_with_sources
Section titled “evaluate_m_expression_with_sources”Evaluates an M expression with sources.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_sources" |
yes |
mText |
string | yes |
| sources | ApprovedSourceDescriptor[] | yes |
| privacy | PqPrivacyEvaluationInput | no |
foldMode |
"folding-on" | “force-local” |
no |
userStoreLevels |
PqPrivacyLevelAssignment[] | no |
subsetId |
string | no |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · evaluate_m_expression_with_sources
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_sources" |
yes |
| outcome | MExpressionOutcome | yes |
Minimal JSON template
{ "operation": "evaluate_m_expression_with_sources", "mText": "<string>", "sources": [], "requestedBackend": "native-desktop"}evaluate_m_expression_with_web_connector
Section titled “evaluate_m_expression_with_web_connector”Evaluates an M expression with a web connector.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_web_connector" |
yes |
mText |
string | yes |
| connector | ApprovedWebConnectorDescriptor | no |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · evaluate_m_expression_with_web_connector
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_web_connector" |
yes |
| outcome | MExpressionOutcome | yes |
Minimal JSON template
{ "operation": "evaluate_m_expression_with_web_connector", "mText": "<string>", "requestedBackend": "native-desktop"}evaluate_m_expression_with_web_source
Section titled “evaluate_m_expression_with_web_source”Evaluates an M expression with a web source.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_web_source" |
yes |
mText |
string | yes |
| source | ApprovedWebSourceDescriptor | no |
| privacy | PqPrivacyEvaluationInput | no |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · evaluate_m_expression_with_web_source
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "evaluate_m_expression_with_web_source" |
yes |
| outcome | MExpressionOutcome | yes |
Minimal JSON template
{ "operation": "evaluate_m_expression_with_web_source", "mText": "<string>", "requestedBackend": "native-desktop"}inspect_m_expression
Section titled “inspect_m_expression”Inspects an M expression.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression" |
yes |
mText |
string | yes |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · inspect_m_expression
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression" |
yes |
| snapshot | PowerQueryInspectorSnapshot | yes |
Minimal JSON template
{ "operation": "inspect_m_expression", "mText": "<string>", "requestedBackend": "native-desktop"}inspect_m_expression_with_odata_feed
Section titled “inspect_m_expression_with_odata_feed”Inspects an M expression with an OData feed.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression_with_odata_feed" |
yes |
mText |
string | yes |
| connector | ApprovedODataFeedDescriptor | no |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · inspect_m_expression_with_odata_feed
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression_with_odata_feed" |
yes |
| snapshot | PowerQueryInspectorSnapshot | yes |
Minimal JSON template
{ "operation": "inspect_m_expression_with_odata_feed", "mText": "<string>", "requestedBackend": "native-desktop"}inspect_m_expression_with_postgres
Section titled “inspect_m_expression_with_postgres”Inspects an M expression with Postgres.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression_with_postgres" |
yes |
mText |
string | yes |
| descriptor | PqPostgresDialogDescriptor | no |
| schema | string | no |
| item | string | no |
connectUser |
string | no |
lanGrants |
PqPostgresLanGrantWire[] | no |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · inspect_m_expression_with_postgres
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression_with_postgres" |
yes |
| snapshot | PowerQueryInspectorSnapshot | yes |
Minimal JSON template
{ "operation": "inspect_m_expression_with_postgres", "mText": "<string>", "requestedBackend": "native-desktop"}inspect_m_expression_with_sources
Section titled “inspect_m_expression_with_sources”Inspects an M expression with sources.
Request
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression_with_sources" |
yes |
mText |
string | yes |
| sources | ApprovedSourceDescriptor[] | yes |
requestedBackend |
ComputeBackendKind | null | no |
Response on success · inspect_m_expression_with_sources
| Field | TypeScript type | Req. |
|---|---|---|
| operation | "inspect_m_expression_with_sources" |
yes |
| snapshot | PowerQueryInspectorSnapshot | yes |
Minimal JSON template
{ "operation": "inspect_m_expression_with_sources", "mText": "<string>", "sources": [], "requestedBackend": "native-desktop"}