cancel
Showing results for 
Search instead for 
Did you mean: 

CREATE method for custom object

rafal_d
Explorer
0 Kudos
636

Hello All,

I am working on the solution in which event (BeforeSave) in BusinessPartner extension (XBO) shall create new custom object.

So far what works is: I am able (using Query) to check if given entry exists.

What I want to achieve is: when entry with given ID does not exist, I want to create a new one.

This is possible for standard objects, but seems not to be possible for custom objects. Is it correct?

For standard object I can import them, like this example:

import AP.FO.BusinessPartner.Global as BusinessPartner;

and then I not only have BusinessPartner.Retrieve , but also BusinessPartner.Create.

The same is not for custom object. Lets say I have CustomObject.bo. Without import it is available however I have only CustomObject.Retrieve or CustomObject.QueryByElements , but not CustomObject.Create.

I am looking for something similar to this:

https://blogs.sap.com/2012/09/04/creatingsaving-a-bo-instance-sample-absl/

but for custom obejct.

is it possible in C4C?

Best regards

Rafał

View Entire Topic
rafal_d
Explorer
0 Kudos

Hello Peter,

thanks for your answer. This answer my question. The problem was indeed different "Deployment Unit".

Best regards

Rafał