cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get BP contact address details with API_BUSINESS_PARTNER

SAPSupport
Employee
Employee
0 Kudos
591

BP DIGITS has contact PHONE_NUMBER with an address with all the details (e-mail, fax, telephone, mobile phone; see attached document). We cannot find a way to retrieve these details with REST API API_BUSINESS_PARTNER.


 


We are calling GET /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BPContactToAddress?$filter=BusinessPartnerCompany eq 'DIGITS'&$expand=to_EmailAddress,to_FaxNumber,to_MobilePhoneNumber,to_PhoneNumber


But in the response we just receive empty arrays:


"to_EmailAddress": {
                    "results": []
                },
                "to_FaxNumber": {
                    "results": []
                },
                "to_MobilePhoneNumber": {
                    "results": []
                },
                "to_PhoneNumber": {
                    "results": []
                },


Can you instruct us what is the right way to retrieve the data?


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

Please try the url:
/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerContact(RelationshipNumber='xxx',BusinessPartnerCompany='xxxxx',BusinessPartnerPerson='xxxx',ValidityEndDate=datetime'9999-12-31T00:00:00')/to_ContactRelationship?$format=json

Answers (0)