This API call inserts a new record into the ExtraView database. All fields are treated as optional, and all defined business rules are executed and checked before and after the record is inserted.
Class |
Name |
Type |
Required |
Details |
InsertItemRequest |
userId |
String |
Yes |
The callers user name |
InsertItemRequest |
password |
String |
Yes |
The callers password |
InsertItemRequest |
sendEmail |
boolean |
Yes |
|
InsertItemRequest |
itemFields |
Array[] |
Yes |
An array of ItemRecordField objects |
ItemRecordField |
fieldId |
String |
Yes |
|
ItemRecordField |
fieldTitle |
String |
Yes |
|
ItemRecordField |
fieldValue |
String |
No |
|
ItemRecordField |
row |
int |
No |
|
Class |
Name |
Type |
Required |
Details |
InsertItemResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
InsertItemResponse |
returnCode |
String |
No |
See Appendix for details |
InsertItemResponse |
returnMessage |
String |
No |
Human readable message |
InsertItemResponse |
itemId |
String |
Yes |
The Id of the insertd item |
public static void testInsertItem(EVItemServiceStub stub) {
try { InsertItemDocument reqEnvelope = InsertItemDocument.Factory.newInstance(); InsertItemRequest request = reqEnvelope.addNewInsertItem().addNewRequest(); request.setUserId(ServiceClientHelper.ADMIN_USER_ID); request.setPassword(ServiceClientHelper.ADMIN_PASSWORD); List request.setItemFieldsArray(items.toArray(new ItemRecordField[items.size()])); InsertItemResponseDocument resEnvelope = stub.insertItem(reqEnvelope); if (response.getSuccess()) { } catch (Exception e) { |