over 9 years ago
If you want to get Hub State Ind of Record in Base Object, you can use following code illustration for same:
- GetRequest req = new GetRequest();
- req.setSiperianObjectUid("BASE_OBJECT.MY_BASE_OBJECT"); // Name of the BO
- RecordKey identity = new RecordKey();
- identity.setRowid("8848484"); // Rowid Object of the Record
- identity.setSystemName("SAP"); //Source System Name
- req.setRecordKey(identity);
- RecordTypes recTypes = new RecordTypes();
- recTypes.setXrefType(true);
- recTypes.setDeletedXrefType(true);
- req.setRecordTypes(recTypes);
- GetResponse res = (GetResponse) sipClient.process(req);
- String hubStateInd =null;
- List<Record> recList = res.getRecords();
- for (Record rec : recList) {
- if (rec.getSiperianObjectUid().startsWith("XREF")){
- Field field = rec.getField("HUB_STATE_IND");
- hubStateInd = field.getValue().toString();
- }
- }
GetRequest req = new GetRequest(); req.setSiperianObjectUid("BASE_OBJECT.MY_BASE_OBJECT"); // Name of the BO RecordKey identity = new RecordKey(); identity.setRowid("8848484"); // Rowid Object of the Record identity.setSystemName("SAP"); //Source System Name req.setRecordKey(identity); RecordTypes recTypes = new RecordTypes(); recTypes.setXrefType(true); recTypes.setDeletedXrefType(true); req.setRecordTypes(recTypes); GetResponse res = (GetResponse) sipClient.process(req); String hubStateInd =null; List<Record> recList = res.getRecords(); for (Record rec : recList) { if (rec.getSiperianObjectUid().startsWith("XREF")){ Field field = rec.getField("HUB_STATE_IND"); hubStateInd = field.getValue().toString(); } }
Can you help out the community by solving one of the following Informatica problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)