Dear Team:Can any one tell,how to add entities to entity list using the orgid in DSS legal entity...

... details.Using the RIC we are able to add entity to entity list but using the org_id i am not able to do this.

Using ric we are doing like this:

LinkedHashMap<String, String> objMapi=new LinkedHashMap<String, String>();

JSONArray jsonArray = new JSONArray();

objMapi.put("Identifier","TCS.NS");


objMapi.put("IdentifierType", "Ric");

jsonArray.put(objMapi);

JSONObject entityListJSONObject = new JSONObject();

entityListJSONObject.put("Identifiers", jsonArray);

entityListJSONObject.put("KeepDuplicates", false);

entityListJSONObject.put("IncludeParentAndUltimateParent", false);
String params =entityListJSONObject.toString();

ClientResponse response = null;
response = webResource.header("Content-Type", "application/json;charset=UTF-8")
.header("Authorization", "Token "+sessionToken)
.post(ClientResponse.class,params);
String output = response.getEntity(String.class);

Best Answer

  • Christiaan Meihsl
    Answer ✓

    The code above worked for a Ric, but what code did you use when trying for an OrgId ? What OrgId did you use ? What was the error ?

    I just created an entity list now, and added 2 entities: TCS.NS (Ric) and 12286 (OrgId), worked fine. This is the body of the HTTP request:

    {
    "Identifiers": [
    {
    "Identifier": "TCS.NS",
    "IdentifierType": "Ric"
    },
    {
    "Identifier": "12286",
    "IdentifierType": "OrgId"
    }
    ],
    "KeepDuplicates": false,
    "IncludeParentAndUltimateParent": false
    }

    Hope this helps.

    Attached a screenshot of the request in ARC: appendorgid.png

Answers