Skip to Content
1

Creating Opportunity or Lead via ODATA in SAP C4C

Apr 09, 2017 at 05:30 PM

201

avatar image
Former Member

Hi All,

Edit: I'm looking for payloads for SalesLead and Opportunity

I'm working with the SAP Cloud for Customer ODATA API and I've been able to perform all operations on other objects, but I haven't been able to crack Opportunity and SalesLead.

  • Trying to create an Opportunity (OpportunityCollection) and SalesLead (SalesLeadCollection) in SAP C4C via the ODATA API. I've been trying various payloads and researching the few days, but I haven't found any that are working. I keep getting the following error: "The Data Services Request could not be understood due to malformed syntax".
  • Upon some research online, SAP has suggested changing the URL for the Lead call to mention "pcmportal" instead of "c4codata", but that has just returned a different issue. The 2nd error, (for pcmportal) seems to indicate that I need to configure access for my API user in my SAP Admin, but I haven't been able to find any information to resolve the issue.
    • Returns: "The Data Services Request could not be understood due to malformed syntax"
  • POST https://my<company>.crm.ondemand.com/sap/c4c/odata/v1/pcmportal/LeadCollection
    • Returns: "The Data Services Request has been understood, but it is refused. User is succesfully authenticated. The request SHOULD NOT be repeated"

Additionally - our integration is trying to manage social media user profiles and user profiles via the ODATA API, but I haven't found a corresponding SAP object to request/manage this information. The closest I've found is a "Request Business Transaction Document Reference" for a Service Request (Incident) which mentions a "SocialMediaChannelCode". Is there a specific object for social media?

Any help is appreciated.

Thanks,

Tyler

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Razia Sultana
Jul 29, 2017 at 08:02 AM
0

Hi Atul,

Can you please try solution provided in sap note 2475421?

https://apps.support.sap.com/sap/support/knowledge/preview/en/2475421

Regards,

Razia

Share
10 |10000 characters needed characters left characters exceeded