Hi Jan,
Issue is accessing navigation properties of entity Interaction. This is because when you generalize an entity its associations are not not available to new entity be default. You will not see any associations in the new entity.
Can you please add associations similar to Interaction entity to new Entity RegisterEvent and SalesOrder and give a try.
Thanks!
Hi Gaurav,
thanks for your response :)
Tried it out with the associations to the Entity RegisterEvent.
It works fine, if the name of the associated entity is like in the OData, so in my example below, it has to be “InteractionEvent”. If I would name it for example “EventRegistrationEvent”, then I got an error and the mapping can not be done. So my originally idea was to create an own entity with association for each interaction so “EventRegistration” & “SalesOrder”, but this can’t be modeled.
Thinking I go with the below approach then, that should work fine:
When posting data back from Mendix to SAP I still facing the issue with the sub-entity.
Doing the following steps. First I create the entity “EventRegistration”, then the entity “InteractionEvent” of my own data model. Then I associate the objects and post it to SAP:
Query: @API_MKT_INTERACTION_SRV.API_MKT_INTERACTION_SRV + '/' + toString(API_MKT_INTERACTION_SRV.EntitySetNames.Interactions)
In SAP only the EventRegistration is posted, without InteractionEvent.
Trying out with the above steps with the OData model from SAP directly, InteractionEvent is posted correctly.
Thanks & Best regards,
Jan