UpdateRecordField
Allows you to update a single field from a Record.
Property
|
Type
|
Value
|
Credentials
|
Credentials
|
Authentication information
|
RecordRef
|
RecordRef
|
References the Record to be modified
|
RecordFieldType
|
RecordFieldType
|
The type of field to modify.
|
Property
|
Property
|
The Record field to be modified.
|
UpdateRecordFieldRequest
|
UpdateRecordFieldResponse
The answer is blank. An error will be triggered if the information entered is invalid.
Examples:
// Modify a Task’s summary
UpdateRecordFieldRequest request = new UpdateRecordFieldRequest();
request.setCredentials(credentials); // See Login Operation
RecordRef taskRef = new RecordRef();
taskRef.setId(1); // Must know the task’s internal ID
taskRef.setType(RecordType.TASK);
request.setRecordRef(taskRef);
request.setRecordFieldType(RecordFieldType.FIELD);
Property p = new Property();
p.setName("summary");
p.setValue("test UpdateRecordField");
request.setProperty(p);
progressionPortType.updateRecordField(request);
// Modify a customizable property
UpdateRecordFieldRequest request = new UpdateRecordFieldRequest();
request.setCredentials(credentials); // See Login Operation
RecordRef taskRef = new RecordRef();
taskRef.setId(1); // Must know the task’s internal ID
taskRef.setType(RecordType.TASK);
request.setRecordRef(taskRef);
request.setRecordFieldType(RecordFieldType.PROPERTY);
Property p = new Property();
p.setName("test.test1");
p.setValue("test UpdateRecordField");
request.setProperty(p);
progressionPortType.updateRecordField(request);
|