For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 4 3 7

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

dss-rest-apidatascope-selectdssjava
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
13.7k 26 8 12

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


appendorgid.png (162.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks Christiaan Meihsl,

Issue Resolve .Thanks for the help.

Hi chris, jitendra wanted to know what the API code is , to input the entity name, domicile country and get the output as Legal entity name , org id..

jitendra from TCS only has the legal entity name as the input.

Kindly help with the API code in java for Rest API

Upvotes
1.1k 5 3 5

You can find the list of all IdentifierType valuse on the REST API Help site at:

https://hosted.datascopeapi.reuters.com/RestApi.Help/Home/RestApiProgrammingSdk

Look for the Tree Node: Extractions Context -> Entities -> EntityListItem -> Enums / Lookups -> IdentifierType

You should find "OrgId" listed for organization identifiers.

Then you just set the org id value you have in the Identifier property just like for RICs.

There is a sample showing this in the sample app found at:

https://hosted.datascopeapi.reuters.com/RestApi.Help/Home/ExampleAppDownload?Id=1

Let me know if we can be a further assistance.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.