Create Original System References
The following example illustrates how you can use Groovy to create Original System References for an object.
-
Before you create the trigger, go to Setup and Maintenance and verify that the following source systems are defined and have the required settings:
-
Manage Trading Community Source Systems (enabled with Enable for Trading Community Members)
-
Manage Source System Entities
-
-
Create a trigger in Account, as shown below:
def newRef = OriginalSystemReference.createRow(); newRef.setAttribute('OrigSystem', 'XXXXX'); //provide the desired Source System Code newRef.setAttribute('OrigSystemReference', 'XXXXX'); //provide a literal or variable with the Source System Reference newRef.setAttribute('CreatedByModule', 'FUSE'); //populate the attribute CreatedByModule with a value from Setup and Maintenance > Manage Standard Lookups > HZ_CREATED_BY_MODULES OriginalSystemReference.insertRow(newRef);