on 08-24-2018 7:17 AM
When I request with below XML I get 400 Bad Request Error
<code>
<parameters>
<parameter dpId=\"DP9\" type=\"prompt\" optional=\"false\">
<id>0</id>
<technicalName>psuCompanyCode</technicalName>
<name>Choose Company</name>
<answer type=\"Text\" constrained=\"true\">
<values>
<value>ABC</value>
</values>
</answer>
</parameter>
<parameter dpId="DP9" type="prompt" optional="false">
<id>1</id>
<answer constrained="false" type="DateTime">
<values>
<value>2017-01-01T00:00.000+01:00</value>
</values>
</answer>
</parameter>
<parameter dpId="DP9" type="prompt" optional="false">
<id>2</id>
<answer constrained="false" type="DateTime">
<values>
<value>2017-11-01T00:00.000+01:00</value>
</values>
</answer>
</parameter>
</parameters>
<br>
try without escaping the quotes
your original post is a mixture of escaped and non-escaped quotes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What result do you get if you use a GET to the same URL?
ie: GET /raylight/v1/documents/<docID>/parameters
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dan,
I get 200 OK and all the parameter details for the specified document id like below:
<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
<parameters>
<parameter dpId=\"DP9\" type=\"prompt\" optional=\"false\">
<id>0</id>
<technicalName>psuCompanyCode</technicalName>
<name>Choose Company</name>
<answer type=\"Text\" constrained=\"true\">
<info keepLastValues=\"false\" cardinality=\"Single\">
<lov refreshable=\"true\" hierarchical=\"false\">
<id>UNIVERSELOV_DS2.DO219</id>
</lov>
</info>
</answer>
</parameter>
<parameter dpId=\"DP9\" type=\"prompt\" optional=\"false\">
<id>1</id>
<technicalName>psuBalanceClosingDate</technicalName>
<name>Choose Report Start Date</name>
<answer type=\"Date\" constrained=\"false\">
<info keepLastValues=\"false\" cardinality=\"Single\" />
</answer>
</parameter>
<parameter dpId=\"DP9\" type=\"prompt\" optional=\"false\">
<id>2</id>
<technicalName>psuBalanceClosingDate</technicalName>
<name>Choose Report End Date</name>
<answer type=\"Date\" constrained=\"false\">
<info keepLastValues=\"false\" cardinality=\"Single\" />
</answer>
</parameter>
</parameters><br>
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.