Problem filtering data relations with RESTful API

2 posts, 0 answers
  1. Matt
    Matt avatar
    1 posts
    Member since:
    Mar 2016

    Posted 29 Jul 2016 Link to this post

    I have my data relations setup on the Telerik backend and I need to filter them based on a user's selection. When I add a filter(id) I get an error.


    Selecting a single item returns an error using the RESTful API but works fine in this URL:{%22Service_Rel%22:{%22TargetTypeName%22:%22Services%22}}

    Any help is greatly appreciated.


  2. Anton Dobrev
    Anton Dobrev avatar
    604 posts

    Posted 02 Aug 2016 Link to this post

    Hello Matthew,

    I am guessing that you have encountered two of the most possible errors:

    - "Invalid expand expression"

    You may need to check whether the expand expression is a valid JSON object, either URL encoded or not.

    - "Filter and Sort are not allowed when expanding multiple items"

    You may need to check whether you are not using a filter in the expand expression to tailor the expanded data in regard to the limitations outlined here.

    On the other hand, you can use the standard X-Everlive-Filter header to supply a filter to tailor the parent data before expanding it.

    I hope that this helps.

    Anton Dobrev
    Telerik by Progress
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
Back to Top