on 03-12-2015 2:36 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.