Skip to Content
avatar image
Former Member

HCI-PI AdditionalObjectReference in OData payload

Dear SAP Team,

I’d like to send via HCI Porcess Integration (PIO) a OData payload to hybris Marketing e.g.:

When I select “ImportHeaders” as Entity, I can select all fileds in the level below ( Sub-Level 1) e.g. Key, ContactID, ... but not the fields "InteractionAdditionalObjectReference”, "ObjectType" and "ObjectId".


How can we add the “InteractionAdditionalObjectReference”?
Is it possible to extend sub-levelson the entity selection screen to 2 (instead 0 or 1)?

Thank you,
Best Regards,
Peter

json.png (33.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 19, 2017 at 03:06 PM

    Hello Peter,

    From modelling perspective you can select only level 0 or 1.But editing the query manually you can reach out to further levels.

    I am just trying to build a query for you although I don't have access to SAP Hybris Marketing( Usually we use to do in SuccessFactors integration to query multilevel Nav objects or entities with association ).

    First Model Your operation with level1 and build the query.Then Manually add "

    Interactions/AdditionalObjectReferences/ObjectType,Interactions/AdditionalObjectReferences/ObjectId fields to $select Query and

    Interactions/AdditionalObjectReferences to $expand.

    Query:

    $select=Id,Timestamp,UserName,SourceSystemType,SourceSystemId,Interactions/Key,Interactions/CommunicationMedium,Interactions/ContactId,Interactions/ContactIdOrigin
    ,Interactions/MarketingPermissionCommunicationMedium,Interactions/Timestamp,Interactions/MarketingPermissionDirection,Interactions/AdditionalObjectReferences/ObjectType,Interactions/AdditionalObjectReferences/ObjectId
    $expand=Interactions,Interactions/AdditionalObjectReferences

    Note: Please validate Entity And Field Names if you are copy pasting the above query.

    You can read about $expand operation with OData Entities to get in depth knowledge about these operations.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded