OData SharePoint REST クエリを強化するために使用しています。展開されたエンティティのプロパティの 1 つを使用$expand
したいと考えています。$filter
ただし、これの正しい構文に関するドキュメントは見つかりません。エンティティ/プロパティの使用を提案する可能性のあるいくつかのスポットを見つけましたが、それを試した後、次のように失敗しました:
クエリ:
_vti_bin/listdata.svc/Posts?$expand=Category&$filter=substring(\"Featured Article\",Category/Title) eq false and year(Published) lt " +year+1+ " and month(Published) lt " +month+1+ " or day(Published) lt " +day+1+ " and ApprovalStatus eq '0'&$select=Title,Published,Category,ApprovalStatus&$orderby=Published desc"
どちらが返されますか:
syntax error '\"' at position 10.
カテゴリが高レベルであり、タイトル プロパティがサブレベルである場合、カテゴリ エンティティのタイトルに基づいてどのようにフィルター処理しますか?