UpdateRecordsFields
Allows you to update one or more fields of several records in a single operation.
UpdateRecordFieldRequest
Proprety |
Type |
Value |
Credentials |
Credentials |
Authentication information |
RecordFields |
RecordFields[] |
Fields to modify and references to records
|
RecordFields
Proprety
|
Type |
Value
|
RecordRef
|
RecordRef |
Pointer to the record to modify
|
RecordFields |
ArrayOfRecordField
|
Fields to modify and references to records
|
UpdateRecordFieldResponse
The answer contains nothing. An error will be thrown if the information entered is invalid.
Examples:
// Java
UpdateRecordsFieldsRequest request = new UpdateRecordsFieldsRequest();
request.setCredentials(credentials);
UpdateRecordsFieldsRequest.RecordFields recordFields = new UpdateRecordsFieldsRequest.RecordFields();
RecordRef recordRef = new RecordRef();
recordRef.setType(RecordType.TASK);
recordRef.setId(8L);
recordFields.setRecordRef(recordRef);
ArrayOfRecordField fields = new ArrayOfRecordField();
RecordField field = new RecordField();
field.setType(RecordFieldType.FIELD);
field.setName("description");
field.setValue("test");
fields.getRecordField().add(field);
field = new RecordField();
field.setType(RecordFieldType.PROPERTY);
field.setName("contact.nom");
field.setValue("test");
fields.getRecordField().add(field);
recordFields.setRecordFields(fields);
request.getRecordFields().add(recordFields);
recordFields = new UpdateRecordsFieldsRequest.RecordFields();
recordRef = new RecordRef();
recordRef.setType(RecordType.TASK);
recordRef.setId(10L);
recordFields.setRecordRef(recordRef);
fields = new ArrayOfRecordField();
field = new RecordField();
field.setType(RecordFieldType.FIELD);
field.setName("description");
field.setValue("test");
fields.getRecordField().add(field);
field = new RecordField();
field.setType(RecordFieldType.PROPERTY);
field.setName("contact.nom");
field.setValue("test");
fields.getRecordField().add(field);
recordFields.setRecordFields(fields);
request.getRecordFields().add(recordFields);
progressionWebService.updateRecordsFields(request);
|