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

C4C: OData Service to create Registered Product

jan_pawlik
Explorer
0 Likes
1,585

Hi Experts,

I'm trying to create an OData Service to create registered products in our C4C system. According to the documentation of the BO I first need to create an Individual Product and then an type 2 Installation Point. So I've created the OData Service for BO IndividualProduct. GET works fine, but with POST I always get an error "Please enter a reference product ID."

The OData Service:

The JSON Request (in Postman):

referencedProductId is assigned to ServiceProcessInformation\ReferencedProductKey\ProductID. And the specified ID does exist.

The result:

I've tested with Potsman and the build in C4C test tool. Same results.

Any ideas why C4C thinks it's missing the referenced product?

Best regards

Jan

Accepted Solutions (1)

Accepted Solutions (1)

jan_pawlik
Explorer
0 Likes

Hi,

stupid me, found the problem. The value I used for referencedProductId was actually an Individual Product itself, and not the product that I wanted to reference.

Jan

Answers (1)

Answers (1)

elio_lopez
Explorer
0 Likes

Hello Jan,

I want to create Registered Product via webservices/OData in ByD, but I think C4C and ByD share the same BOs in this case.

Could you please share with me your OData service ?

Thank you in advance.

Elio