cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HCP : Unable to create Ticket from HCP to C4C

Former Member
0 Kudos

Hi Experts,

I have integrated with HCP with C4C with using OData service and i have implemented the ticket creation from as shown below:

Getting error  : Resource not found for the segment 'TicketCollection'

Same application is running last month but when i create ticket nothing happen even no action triggered

Anyone help me whats wrong :

I am using the below Odata service :

https://myXXXXX.crm.ondemand.com/sap/byd/odata/v1/c4c.svc/TicketCollection

Getting error  : Resource not found for the segment 'TicketCollection'

Regards,

Mithun

Accepted Solutions (1)

Accepted Solutions (1)

former_member199536
Active Participant
0 Kudos

Hi Mithun,

Seems like the Business Object formerly known as TicketCollection was replaced with ServiceRequestCollection.

Try invoking this URL instead: https://myXXXXX.crm.ondemand.com/sap/byd/odata/v1/c4c.svc/ServiceRequestCollection


Generally if you invoke the root OData service URL https://myXXXXX.crm.ondemand.com/sap/byd/odata/v1/c4c.svc/$metadata

you can see the available Business Objects under the EntityContainer tag (<EntityContainer Name="c4c.svc" m:IsDefaultEntityContainer="true">).


Let me know how this works out for you.

Ido

Former Member
0 Kudos

Thanks Ido,

It works fine in my case

Thanks for you valuable time and helpful reply....

Regards,

Mithun

Former Member
0 Kudos

Hi Mithun,

What version/package of HCP are you using to develop ticket creation?

Will this work with HCP Trial Version??

former_member228663
Participant
0 Kudos

Hi Mithun,

I have created a CRUD Fiori application for SAP C4C service ticket in HCP.

Now I can see all the C4C service ticket in my new app and also able to update any particular ticket.

But when I am going to create a new ticket from this app, i am getting error.

Could you please help me to resolve it.

How can I create a new ticket form this app ?

Thanks & Regards,

Manoj Kannaujiya

Former Member
0 Kudos

Hi MANOJ KANNAUJIYA ,

You can check reply from Ido and first try with any REST tool and create it.


The Chrome Plugin I was using to test the OData services is called – Advanced Rest Client

Test the C4C Odata services:

  The oData catalog is available through the following GET request:

  https://myXXXXXX.crm.ondemand.com/sap/byd/odata/v1/odataservice/$metadata

  Get all tickets – GET request on https://myXXXXXX.crm.ondemand.com/sap/byd/odata/v1/c4c.svc/ServiecRequestCollection

  Create Ticket  -

  POST request to https://myXXXXXX.crm.ondemand.com/sap/byd/odata/v1

  Request Headers:

  x-csrf-token: <token value returned from GET request >

  Accept: application/atom+xml,application/atomsvc+xml,application/xml

Please check and let me know if its works for you.

Regards,

Mithun

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mithun,

I have the same requirement as that odata "c4c.svc" is deprecated am using https://xxxxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codata/ServiceRequestCollection

But unable to create tickets. Please guide me on creation.

Thanks

Swadini S