Forum Discussion

LPenatti's avatar
LPenatti
Helper II
3 years ago

Expand Record field using OData query

Hi everyone,

 

I'm building a report that uses OData as the data source.

 

As this data source has a lot of information, I'm creating a filter directly in the query, using $select=id,change
However, the change column is a Record type column, and has a bunch of fields inside it. I want to extract only the operatorId column inside the change Record. How to do this directly via OData query?

 

I've researched in different forums and everything I found and tested didn't work.

The problem is my lack of knowledge in that language.

 

This is the best documentation I could find but even it did not help me to do what I need:

http://docs.oasis-open.org/odata/odata/v4.01/cs01/part2-url-conventions/odata-v4.01-cs01-part2-url-conventions.html#_Toc505773297

 

This is what I've tried so far:
$select=id,change&$expand=change($select=operatorId)


$select=id&$expand=change($select=operatorId)


$select=id,change&$expand=change/operatorId


$select=id,change/operatorId

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi LPenatti,

    It seems like they do not allow you to nest multiple level URL conversion queries.

    I'd like to suggest you only apply one level expand in these formulas, then you can use power query expressions to continue the following operations.

    Regards,

    Xiaoxin Sheng