Pass the structure attribute to an entity

Pass the structure attribute to an entity

  

how can I pass the structure attribute to the entity I created?

Hi Wensen,


Can you be a bit more explicit in what you are trying to do?


Regards,
João Rosado

João Rosado wrote:

Hi Wensen,


Can you be a bit more explicit in what you are trying to do?


Regards,
João Rosado

Hi João Rosado,

Thanks for your response. What I want to achieve is below:

First , I have got some data from another system using "REST API"

These data were showed as a form as array(json) in the structure, for example, the top layer is "PostRestResponse", next layer is "Object", next layer is "Person__"  and the last layer is "Field"

Then I use a "ListAppend" to store the values of "Friendlyname" and "Email" in the Field,Now I want to transfer the values of "Friendlyname" and "Email" to the entity "Person"  that I created so that I can create a "Search form" or something else easier later on. 


How can I fulfill it? Thanks

Is that Objects attribute if type "Object" or "List of Object"?

The Object structure looks really strange with all the __2, __5, ...

Can you show how the json looks like?

João Rosado wrote:

Is that Objects attribute if type "Object" or "List of Object"?

The Object structure looks really strange with all the __2, __5, ...

Can you show how the json looks like?

The whole response json data is below:


{
  "objects": {
    "Person::2": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "2",
      "fields": {
        "friendlyname": "Anna Gavalda",
        "email": "gavalda@it.com"
      }
    },
    "Person::5": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "5",
      "fields": {
        "friendlyname": "Gustave Flaubert",
        "email": "flaubert@it.com"
      }
    },
    "Person::6": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "6",
      "fields": {
        "friendlyname": "Jean Cocteau",
        "email": "cocteau@it.com"
      }
    },
    "Person::8": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "8",
      "fields": {
        "friendlyname": "Jean-Paul Sartre",
        "email": "sartre@it.com"
      }
    },
    "Person::9": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "9",
      "fields": {
        "friendlyname": "Jules Verne",
        "email": "vernes@it.com"
      }
    },
    "Person::10": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "10",
      "fields": {
        "friendlyname": "Marguerite Duras",
        "email": "duras@it.com"
      }
    },
    "Person::13": {
      "code": 0,
      "message": "",
      "class": "Person",
      "key": "13",
      "fields": {
        "friendlyname": "Victor Hugo",
        "email": "hugo@it.com"
      }
    }
  },
  "code": 0,
  "message": "Found: 7"
}