Skip to content

How to get @OData.Community.Display.V1.FormattedValue? #9

@severin-bruhat

Description

@severin-bruhat

Hi,
Is there a way to grab the FormattedValue instead of the GUID?
Using this header:
'Prefer' => 'odata.include-annotations=OData.Community.Display.V1.FormattedValue,return=representation',

I can get this kind of result:
+"[email protected]": "My product name" +"productname_value": "7dc2fcbe-8a6d-e811-8108-3863bb341bf8"

However with the PHP library, $res->productname_value gives me the GUID (which makes sense) but I don't know how to get the value obviously $res->[email protected] won't work

thank you for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions