cancel
Showing results for 
Search instead for 
Did you mean: 

How can I call event in different object?

former_member200995
Contributor
0 Kudos

Hi experts,

     In purchaseorder object, it has many event, for example:

    

     I extension other object, for example, in ConfirmedInboundDelivery extension, I want to call the purchaseorder object's event "FinishDeliveryProcessing", could I success?Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200995
Contributor
0 Kudos

Hi experts,

     It raise:

    

ludger_bunger
Participant
0 Kudos

Hi Bin,

PurchaseOrder is in a different Deployment Unit than ConfirmedInboundDelivery.

This means you have only read-only access to fields and methods of Purchase Orders when executing code inside ConfirmedInboundDelivery.

To "transfer" execution to a different Deployment Unit you need to create a custom object mirroring (the important parts of) the ConfirmedInboundDelivery in the other deployment unit using an internal communication.

Then when when modifying of some property occurs in the ConfirmedInboundDelivery the respective property will be also modified in the mirror object and you can react to this change in the mirror object to trigger the action of the purchase order.

I suggest to have another look to the SDK documentation and to look up "deployment unit" and "internal communication" which might be helpful.

Best regards,

Ludger

former_member200995
Contributor
0 Kudos

Hi Ludger,

     I have try it, but have much question on it, Could you share me a sample of Internal communication? Thanks.