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
- Call the DataChangeAPI web service method updateDataChangeGosu.
-
Pass the method the following arguments as
Stringobjects:- 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
