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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
5 2 9 12

How can I reproduce this section of XML Corporate Actions Report Template

  1. I’m trying to create, via Java API Rest, the attached Corporate Actions Report Template (“NEW_FULL_DATA_RTCE_Future_Corax_report_RPT_Definition.xml”, already existing on the Datascope site).


How can I reproduce this section of XML Corporate Actions Report Template?


<AllowEmptyEvents>No</AllowEmptyEvents> ref_error.txt


And this section?


<QueryStart>

<PreviousDays>0</PreviousDays>

</QueryStart>

<QueryEnd>

<AllFutureEvents> </AllFutureEvents>

QueryEnd>

2.

In the attached document (“Ref_JavaCode.docx”) there is the code used to create the Corporate Actions Report Template. This code returns Bad Error (“Ref_error.docx”).

Could you check what we are doing wrong?

dss-rest-apidatascope-selectdsscorporate-actions
ref-error.txt (8.3 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.

@Prathibha.Mariyappa

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@Prathibha.Mariyappa

I got the following error when using the attached request in the Postman.

{
    "error": {
        "message": "Validation Error:\r\n\r\nAt least one Corporate Actions event must be selected."
    }
}

Refer to DSS REST API Reference Tree, there are required fields in the request.

After adding those fields in the request, the response returns 201 Created.

    "IncludeCapitalChangeEvents": true,
    "IncludeDividendEvents": true,
    "IncludeEarningsEvents": true,
    "IncludeMergersAndAcquisitionsEvents": true,
    "IncludeNominalValueEvents": true,
    "IncludePublicEquityOfferingsEvents": true,
    "IncludeSharesOutstandingEvents": true,
    "IncludeVotingRightsEvents": true,

I have modified the condition to this:

  "Condition": {
    "IncludeCapitalChangeEvents": true,
    "IncludeDividendEvents": true,
    "IncludeEarningsEvents": true,
    "IncludeMergersAndAcquisitionsEvents": true,
    "IncludeNominalValueEvents": true,
    "IncludePublicEquityOfferingsEvents": true,
    "IncludeSharesOutstandingEvents": true,
    "IncludeVotingRightsEvents": true,
    "CorporateActionsCapitalChangeType": "CapitalChangeExDate",
    "CorporateActionsDividendsType": "DividendExDate",
    "ExcludeDeletedEvents": false,
    "IncludeNullDates": false,
    "ReportDateRangeType": "Range",
    "PreviousDays": 0
      }

The created report template has the following attributes.

      <RangeQuery>
        <QueryStart>
          <PreviousDays>0</PreviousDays>
        </QueryStart>
        <QueryEnd>
          <AllFutureEvents> </AllFutureEvents>
        </QueryEnd>
        <AllowEmptyEvents>No</AllowEmptyEvents>
        <ExcludeDeletedEvents>No</ExcludeDeletedEvents>
      </RangeQuery>

The full request is request.txt


1608525554264.png (42.9 KiB)
request.txt (8.4 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.

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.