UpdateRecordFields
Allows you to update several fields from a Record.
Property
|
Type
|
Value
|
Credentials
|
Credentials
|
Authentication information
|
RecordRef
|
RecordRef
|
References the Record to be modified
|
RecordFields
|
ArrayOfRecordField
|
The Record’s fields to be modified
|
UpdateRecordFieldsRequest
|
UpdateRecordFieldsResponse
The answer is blank. An error will be triggered if the information entered is invalid.
Examples:
// Update properties of an equipment
UpdateRecordFieldsRequest request = new UpdateRecordFieldsRequest();
request.setCredentials(credentials);
request.setRecordRef(newRecordRef(RecordType.RESOURCE, 1L));
ArrayOfRecordField arrayOfRecordField = new ArrayOfRecordField();
RecordField f;
f = new RecordField();
f.setType(RecordFieldType.PROPERTY);
f.setName("equipment.mac");
f.setValue("test");
arrayOfRecordField.getRecordField().add(f);
f = new RecordField();
f.setType(RecordFieldType.PROPERTY);
f.setName("equipment.state");
f.setValue("test");
arrayOfRecordField.getRecordField().add(f);
request.setRecordFields(arrayOfRecordField);
progressionWebService.updateRecordFields(request);
|