Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • SIF API to get Hub State Ind of Record

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 587
    Comment on it

    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();                
            }
          }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: