on 03-16-2015 4:22 PM
Hi,
I need to read associated entity in my application. I got to know below syntax from one of the thread but it doesn't work. It returns customer entity data only but i need to read both customer and Address entity.
/sap/opu/odata/SAP/TOP/ContactPersons('XXXXXXX')?&?$expand=Address
Any help would be appreciated.
Thanks,
Swati
Section 4.6
http://www.odata.org/documentation/odata-version-2-0/uri-conventions/
should be
/sap/opu/odata/SAP/TOP/ContactPersons('XXXXXXX')?$expand=Address
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Swati,
Perhaps it is a typo in copying the URL, but try removing the extra '?&':
/sap/opu/odata/SAP/TOP/ContactPersons('XXXXXXX')?$expand=Address
If removing '?&' doesn't resolve the issue, you can try directly examining the service metadata and ContactPersons entity to confirm the association and link to Address, respectively.
/sap/opu/odata/SAP/TOP/$metadata
/sap/opu/odata/SAP/TOP/ContactPersons('XXXXXXX')
Regards,
Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.