cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Data not load to Apps (Multi Records)

Hi,

 

I'm testing Apps with OData (V4). Data is load to app (collection) if i filter single record but it not load all record if get func. does not has filter. Look like data is retrieve from source but not load into collection.

 

 

ClearCollect(singlerec,'NWODataV4.1'.GetCustomer("ALFKI")) // Working (attach at OnSelect of Button)
ClearCollect(allrec,'NWODataV4.1'.GetCustomers()) // not working (attach at OnSelect of Button)

Here is swagger file

 

 

{
	"swagger": "2.0",
	"info": {
		"version": "1.0.0",
		"title": "NWODataV4.1.1",
		"description": "OData Information. Northwind OData Url http://services.odata.org/V4/Northwind/Northwind.svc"
	},
	"host": "services.odata.org",
	"basePath": "/V4/Northwind/Northwind.svc",
	"schemes": [
		"http"
	],
	"produces": [
		"application/json",
		"application/xml",
		"text/xml",
		"text/html"
	],
	"consumes": [
		"application/json",
		"application/xml",
		"text/xml",
		"text/html"
	],
	"paths": {
		"/Customers": {
			"get": {
				"tags": [
					"Customer Info"
				],
				"description": "Get Top Customers",
				"operationId": "GetTopCustomers",
				"produces": [
					"application/json"
				],
				"consumes": [
					"application/json"
				],
				"responses": {
					"200": {
						"description": "Customer Lists is responsed",
						"schema": {
							"$ref": "#/definitions/CustomerInfo"
						}
					},
					"default": {
						"description": "error payload",
						"schema": {
							"$ref": "#/definitions/ErrorModel"
						}
					}
				}
			}
		},
		"/Customers('{CustomerId}')": {
			"get": {
				"tags": [
					"Customer Info"
				],
				"description": "Get Customer By ID (ALFKI)",
				"operationId": "GetCustomer",
				"parameters": [{
					"name": "CustomerId",
					"in": "path",
					"description": "ID to fetch Person.",
					"required": true,
					"type": "string"
				}],
				"produces": [
					"application/json"
				],
				"consumes": [
					"application/json"
				],
				"responses": {
					"200": {
						"description": "Customer Lists is responsed",
						"schema": {
							"$ref": "#/definitions/CustomerInfo"
						}
					},
					"default": {
						"description": "error payload",
						"schema": {
							"$ref": "#/definitions/ErrorModel"
						}
					}
				}
			}
		},
		"/Employees": {
			"get": {
				"tags": [
					"Employee Info"
				],
				"description": "Get Employees",
				"operationId": "GetEmployees",
				"produces": [
					"application/json"
				],
				"consumes": [
					"application/json"
				],
				"responses": {
					"200": {
						"description": "Employees List is responsed",
						"schema": {
							"type": "array",
							"items": {
								"$ref": "#/definitions/EmployeesInfo"
							}
						}
					},
					"default": {
						"description": "error payload",
						"schema": {
							"$ref": "#/definitions/ErrorModel"
						}
					}
				}
			}
		},
		"/Employees({EmployeeID})": {
			"get": {
				"tags": [
					"Employee Info"
				],
				"description": "Get Employees By ID (1)",
				"operationId": "GetEmployee",
				"parameters": [{
					"name": "EmployeeID",
					"in": "path",
					"description": "ID to fetch Employees.",
					"required": true,
					"type": "string"
				}],
				"produces": [
					"application/json"
				],
				"consumes": [
					"application/json"
				],
				"responses": {
					"200": {
						"description": "Employees Lists is responsed",
						"schema": {
							"$ref": "#/definitions/EmployeesInfo"
						}
					},
					"default": {
						"description": "error payload",
						"schema": {
							"$ref": "#/definitions/ErrorModel"
						}
					}
				}
			}
		}
	},
	"definitions": {
		"CustomerInfo": {
			"type": "object",
			"required": [
				"CustomerID"
			],
			"properties": {
				"CustomerID": {
					"type": "string",
					"maxLength": 20
				},
				"CompanyName": {
					"type": "string",
					"maxLength": 20
				},
				"ContactName": {
					"type": "string",
					"maxLength": 20
				},
				"ContactTitle": {
					"type": "string",
					"maxLength": 20
				},
				"Address": {
					"$ref": "#/definitions/AddressModel"
				},
				"Contact": {
					"$ref": "#/definitions/ContactModel"
				}
			}
		},
		"EmployeesInfo": {
			"type": "object",
			"required": [
				"EmployeeID"
			],
			"properties": {
				"EmployeeID": {
					"type": "integer",
					"format": "int32"
				},
				"TitleOfCourtesy": {
					"type": "string",
					"maxLength": 20
				},
				"FirstName": {
					"type": "string",
					"maxLength": 20
				},
				"LastName": {
					"type": "string",
					"maxLength": 20
				},
				"Title": {
					"type": "string",
					"maxLength": 20
				},
				"BirthDate": {
					"type": "string",
					"format": "date"
				},
				"HireDate": {
					"type": "string",
					"format": "date"
				},
				"Address": {
					"$ref": "#/definitions/AddressModel"
				},
				"Contact": {
					"$ref": "#/definitions/ContactModel"
				},
				"Photo": {
					"type": "string",
					"format": "byte"
				}
			}
		},
		"AddressModel": {
			"type": "object",
			"required": [
				"Address"
			],
			"properties": {
				"Address": {
					"type": "string",
					"maxLength": 20
				},
				"City": {
					"type": "string",
					"maxLength": 20
				},
				"Region": {
					"type": "string",
					"maxLength": 20
				},
				"PostalCode": {
					"type": "string",
					"maxLength": 20
				},
				"Country": {
					"type": "string",
					"maxLength": 20
				}
			}
		},
		"ContactModel": {
			"type": "object",
			"properties": {
				"Phone": {
					"type": "string",
					"maxLength": 20
				},
				"HomePhone": {
					"type": "string",
					"maxLength": 20
				},
				"WorkPhone": {
					"type": "string",
					"maxLength": 20
				},
				"Extension": {
					"type": "string",
					"maxLength": 20
				},
				"Fax": {
					"type": "string",
					"maxLength": 20
				},
				"E-Mail": {
					"type": "string",
					"maxLength": 20
				}
			}
		},
		"ErrorModel": {
			"type": "object",
			"required": [
				"code",
				"message"
			],
			"properties": {
				"code": {
					"type": "integer",
					"format": "int32"
				},
				"message": {
					"type": "string"
				}
			}
		}
	}
}

Here is single record result

 

Singles.png

Here is multi record result

multis.png

 

fiddler result on multi records

fiddler.png

 

Is it Apps does not work with OData?

 

Regards,

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,507)