Register a data change using a web service

About this task

Warning: Before registering a data change on a production server, register and run the data change on a development server first. Guidewire recommends multiple people review and test the code and the results before attempting the data change on a production server.

Procedure

  1. Call the DataChangeAPI web service method updateDataChangeGosu.
  2. Pass the method the following arguments as String objects:
    • The reference ID
    • A human-readable description
    • The Gosu code to run
    For example:
    var gosuScript = "gw.transaction.Transaction.runWithNewBundle(\ bundle -> { 
          print(""DATA CHANGE!"") })"
    
    var publicID = datachangeAPI.updateDataChangeGosu("REFID_1234", 
          "Fix for Issue 1234 regarding missing Employee ID", gosuScript)

Results

The method call returns the public ID of the new DataChange entity instance.

What to do next

See also