Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Collection structure not updated with nested collection

I am trying to create an app based on a rest API. Got most things working an I understand, thanks to @v-xida-msft , what I can and can't do with the REST Api.


So I am using collections to store some data, but one of the collection won't show the nested objects. I updated the connector and the response part, it shows the nested fields and also the test of the custom connector is showing the correct results.


But in the app I don't get nested data in the collection, and I can't find the reason why.


The json data:


    "id": "mfnVHOTn",
    "company_id": "2fuihMjF",
    "firstname": "John",
    "lastname": "Doe",
    "street": "Street 22",
    "housenumber": null,
    "postalcode": "1111AP",
    "city": "Amsterdam",
    "birthdate": "1980-01-1 00:00:00",
    "nationality_id": 92,
    "picture": "",
    "ic_type": "ID-bewijs",
    "ic_country": 92,
    "bsn_number": "123456789",
    "ic_number": "AAAA322222",
    "ic_date": "2025-01-1 00:00:00",
    "ic_copy": "",
    "ic_copy_back": "",
    "non_eu_citizen": 0,
    "residence_permit": null,
    "work_permit": null,
    "permit_number": null,
    "permit_date": null,
    "permit_copy_front": "",
    "permit_copy_back": "",
    "vca_certified": 1,
    "vca_date": "2020-01-01 00:00:00",
    "gpi_certified": 0,
    "gpi_date": null,
    "signature": "employee_Images/mfnVHOTn.signature.074744.png",
    "created_by": {
        "id": "lficbkrg",
        "firstname": "Jane",
        "lastname": "Doe",
        "email": "",
        "company_id": "FA5P4xYo",
        "name": null,
        "updated_at": "2019-08-30 05:06:33",
        "created_at": null,
        "profile_img": "/user/1567141593.jpeg"
    "created_date": "2019-08-23 07:44:17",
    "changed_by": "lficbkrg",
    "changed_date": "2019-08-23 07:44:27",
    "deleted_at": null,
    "company": {
        "id": "2fuihMjF",
        "app_heading": "",
        "name": "Janse",
        "created_by": "inedpmyu",
        "created_at": "2019-02-04 00:00:00",
        "updated_at": "2019-02-04 09:10:52",
        "owner": null
    "nationality": {
        "id": 92,
        "description": "Nederlands"


In the response you can see for example the Created_by Lastname object

Connector Response.JPG


This is the onVisible update function for the collection:

      ClearCollect(localEmployee; ThappAPI.GetEmployee({idSmiley}));
      UpdateContext({statusText: "Online data"})
      LoadData(localEmployee; "localEmployee"; true);
      UpdateContext({statusText: "Local data"})
  SaveData(localEmployee; "localEmployee");;

Collection result:


Collection result.JPG



Re: Collection structure not updated with nested collection

Bumping for visibility 



Helpful resources


PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.


Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

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


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 385 members 4,913 guests
Please welcome our newest community members: