Skip to Content

Updating Business Objects witin PDI

Hi,

When trying to update accounts in PDI, I cannot find an update() method like I would of expected, like the Create() method.

I have a requirement to update an accounts master data with the master data of another account

What are the options when trying to update accounts or business objects in general within PDI?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 02, 2017 at 08:22 AM

    Hello Jonathan,

    you first need to find the relevant BO instance, in this case the mentioned account, and then make changes to it. You can use the Retrieve() method when you have the respective UUID and then update that particular instance, e.g. using data from another account which you have retrieved.

    This is the method in PDI.

    • <node instance> = <business object>.Retrieve(<alternative key>);

    Hope that helps, Michael

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 02, 2017 at 08:32 AM

    As a quick example:

    var RetrieveSource = Customer.Retrieve(UUID_1);
    var RetrieveTarget = Customer.Retrieve(UUID_2);

    RetrieveTarget.<elementname> = RetrieveSource.<elementname> ;

    Add comment
    10|10000 characters needed characters exceeded