If requirement is to create entry in Base Object using SIF API you can use following code:
PutRequest request = new PutRequest();
request.setGenerateSourceKey(true);
RecordKey identity = new RecordKey();
identity.setSystemName("MY_SOURCE_SYSTEM");
request.setRecordKey(identity);
Record record = new Record();
record.setSiperianObjectUid("BASE_OBJECT.MY_BASE_OBJECT_NAME");
record.setField( new Field("ID", 1) );
record.setField( new Field("FIRST_NAME", "Chandan") );
record.setField( new Field("LAST_NAME", "Ahluwalia") );
request.setRecord( record );
PutResponse response = (PutResponse) sipClient.process(request);
When above code will be called it will create entry for Chandan Ahluwalia in Base Object.
0 Comment(s)