The query results identifies the values belonging to the InternalRecipients link as follows:<field name="InternalRecipients.WHERE(Person.LastName:wright)">The expanded link field name can be simplified by using the AS function, as shown below:.../_query?f=InternalRecipients.WHERE(Person.LastName:wright).AS(Wright)&q=...The AS function must appear after the WHERE filter and/or link size limit, if any. The parameter to the AS function can be an unquoted term or a quoted string. The parameter value defines a field name alias that is used instead of the default link field name in the query results. For example:<field name="Wright">Multiple AS functions can be used in the same object query. However, alias names used at the same level must be unique so that each field name in the output results is unique."$SalesPeople": {"expression": "WHERE(Department:sales)"}The alias $SalesPeople can be used as in a fields parameter, potentially with additional filtering, as in the following example:GET /Email/Message/_query?q=Size>100000&range=0
&f=Sender.Person.$SalesPeople.WHERE(Office:aliso).LastNameBy default, the query results for the Person link includes the filters in both the alias definition and the &f parameter. For example, it will appear within the Sender group element as follows:<field name="Person.WHERE((Department:sales) AND (Office:aliso))">GET /Email/Message/_query?q=Size>100000&range=0
&f=Sender.Person.$SalesPeople.WHERE(Office:aliso).AS("Sales Person").LastName<field name="Sales Person">