odata

SAPUI5 Create OData entity with dates - generates incorrect request payload that ends in CX_SXML_PARSE_ERROR

人走茶凉 提交于 2020-01-07 08:22:52
问题 We are trying to create an entity that has date attributes via an odata service. Backend is an sap system. This entity has only 3 key attributes plus a bunch of other attributes. We have identified that dates in the keys are the root cause of the problem. Keys: Pernr type string, begda type datetime endda type datetime. The code below, (which does not work), has been severely simplified when trying to troubleshoot the issue. At the moment, it reads an entity from an entity set and immediately

WebAPI 2 Odata Filter not working

余生长醉 提交于 2020-01-07 02:32:07
问题 I have a problem with using multiple filters on my WebAPI 2 Odata project. We only want JSON output and only have one object type to query so we set the url to "/" without the possibility to use a different controller. I have an object I want to query with the following properties: public class Content { public int Id { get; set; } public string Title { get; set; } public string Excerpt { get; set; } public string Link { get; set; } public IList<Tag> Tags { get; set; } } public class Tag {

Odata v.4 $filter for the DateTime Calendar Events in the Office 365 REST API

不打扰是莪最后的温柔 提交于 2020-01-06 20:15:12
问题 I am trying to get and filter Calendar events from the Office 365 REST API with the following query: https://outlook.office.com/api/v2.0/users/user@user.com/calendars/AAAAAAAAAAA/events?$top=100&$select=BodyPreview&$filter=Start ge 2016-02-10T22:00:00Z So I want 100 results with only the BodyPreview as return value for all Events greater than 2016-02-10 22:00:00. The Error Message I receive is this one: ERROR request returned 400 error: code: 'RequestBroker-ParseUri', message: 'A binary

How to join 2 entities in Odata model builder

梦想的初衷 提交于 2020-01-06 12:46:32
问题 I am currently using OData V4 and wish to join 2 tables Account and Product: The tables are as follows: Account: Id, Name, Address, ColorCode, Product: Id, AccountId AccountId in the Product table is a foreign key mapped to the Id field in the Account table In my builder I have : var ProductType= builder.EntityType<Product>(); When I build the Product entity I wish to get the "ColorCode" values from the Account entity. How can i establish this relationship in the model builder? I would like

OData Search with Office 365 Mail API .NET Client

我与影子孤独终老i 提交于 2020-01-06 08:34:06
问题 I need to perform an OData query $search = "subject:pizza" using the OutLook 365 API but using the Outlookservicesclient (found the in the outlook 365 sdk, this nuget https://www.nuget.org/packages/Microsoft.Office365.OutlookServices-V2.0/) See this OutLookAPI OData query Reference This works correctly using an HttpClient but with the .NET client library, its seemingly not possible to add any non-standard query parameters. Ie: var messages = await client.Users['mail@me.com'].Messages .Where(m

WCF secured with Azure AD

徘徊边缘 提交于 2020-01-06 07:10:56
问题 I have a WCF service hosted by Azure and secured by Azure AD. when I use the web to access the service I am prompted with the Azure login,after a successful login,I reach the data. I am trying to access the data form Winforms, I reach the OAuth2 login screen, I successfully login and get the token. I add the token to the context headers, but still receive this message: InnerException = "You do not have permission to view this directory or page." any help on how to access WCF secured with

WCF secured with Azure AD

ぃ、小莉子 提交于 2020-01-06 07:10:34
问题 I have a WCF service hosted by Azure and secured by Azure AD. when I use the web to access the service I am prompted with the Azure login,after a successful login,I reach the data. I am trying to access the data form Winforms, I reach the OAuth2 login screen, I successfully login and get the token. I add the token to the context headers, but still receive this message: InnerException = "You do not have permission to view this directory or page." any help on how to access WCF secured with

How to Get the Data from Navigation Property of OData Service

一笑奈何 提交于 2020-01-06 06:26:07
问题 We are creating the Master Details UI5 app. I am calling the OData service and able to display the data from an entity set in Master list. On detail section, we are creating a form and I want to display the data which is coming from Navigation entity set. As I came to know that we can not call navigation entity set in a single call, how can it be done? <EntityType Name="Product" sap:content-version="1"> <Key> <PropertyRef Name="ProductID"/> </Key> <Property Name="ProductID" Type="Edm.String"

How to Get the Data from Navigation Property of OData Service

前提是你 提交于 2020-01-06 06:25:33
问题 We are creating the Master Details UI5 app. I am calling the OData service and able to display the data from an entity set in Master list. On detail section, we are creating a form and I want to display the data which is coming from Navigation entity set. As I came to know that we can not call navigation entity set in a single call, how can it be done? <EntityType Name="Product" sap:content-version="1"> <Key> <PropertyRef Name="ProductID"/> </Key> <Property Name="ProductID" Type="Edm.String"

Use extended REST functions like contains in Dynamics CRM

醉酒当歌 提交于 2020-01-06 03:01:09
问题 As I noticed, fetching data in Dynamics CRM with REST is a lot faster then with SOAP especially for big data. Since I'm new to this topic (REST) I want to ask if it's necessary to include any additional library to use functions in my query for instance "contains". If I send the query: XrmServiceToolkit.Rest.RetrieveMultiple("ActivityPointerSet", "$filter=contains(Subject,'Test')&$top=10", function(results){ console.log(results); }, function(error){ console.log(error); }, function onComplete()