restsharepointpostman

Sharepoint REST Field Property does not exist


I am using Postman for Chrome to test some simply stuff with Sharepoints REST Api.

Well - I get an error right in the beginning while trying to retrieve certain Fields from a List - here are some pictures:

SharePoint List:

enter image description here

Calling for CPU

enter image description here

Calling for RAM - which fails:

enter image description here

(EXmsg: Field Property 'RAM' does not exist)

Anyone has a clue? I do not understand this at all.


P.s.

When calling:

/_api/web/lists/getbytitle('Anwendungen')/items

RAM will be displayed as a property of "zzfu" - how is that?


Solution

  • This error occurs since $select query option accepts field internal name but not display name.

    Having said that, you might need first to determine field internal name, for example:

    /_api/web/lists/GetByTitle('Anwendungen')/fields?$select=InternalName&$filter=Title eq 'RAM'
    

    Once the field internal is determined, you could query field value like this:

    /_api/web/lists/GetByTitle('Anwendungen')/items?$select=<RAM internal name>
    

    where <RAM internal name> is RAM field internal name.