Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

API question

EisukeKurosaka
Contributor III

We attempt an API call using the following curl command. Our Archer Version is 6.9 SP3 P2:

curl --verbose -H 'Accept: application/json,text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H "Content-Type: text/xml; charset=utf-8" -H 'SOAPAction: http://archer-tech.com/webservices/CreateValuesListValue' https://<host name>/ws/field.asmx --data @temp_addValuesListValue.xml > output.xml

 

The contents of the temp_addValuesListValue.xml is:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/>

<soap:Body>

<CreateValuesListValue xmlns=http://archer-tech.com/webservices/>

<sessionToken><Valid Session Token></sessionToken>

<valuesListId><Valid Values List ID></valuesListId>

<valuesListValueName>Sample</valuesListValueName>

</CreateValuesListValue>

</soap:Body>

</soap:Envelope>

 

The output.xml file contains the following error:

 

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---&gt; Values list not found.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>

 

The call is reaching the target host and the user is authenticated, but a new ID is not present in the response.  From what we have read in the forum and online, the API user must have Create privileges in order for this API function to work.  The user making this call has admin privs as well as Create privs.  There could be something incorrect with the request, but we have been unable to identify an issue.  Are there other config/priv settings, perhaps at the module or field level, that would prevent the addition of the new value to the Values List?  Please advise. Thank you in advance.

2 ACCEPTED SOLUTIONS

Accepted Solutions

DavidPetty
Archer Employee
Archer Employee

@EisukeKurosaka the error 'Values list not found.' tells me that the id of the values list isn't correct.

Is the values list a global or local to the application?

 Advisory Consultant

View solution in original post

@DavidPetty  Thank you. We found that the Global Values List has its own ID and the script was referencing the application value list ID.

View solution in original post

3 REPLIES 3

DavidPetty
Archer Employee
Archer Employee

@EisukeKurosaka the error 'Values list not found.' tells me that the id of the values list isn't correct.

Is the values list a global or local to the application?

 Advisory Consultant

EisukeKurosaka
Contributor III

@DavidPetty  Thanks. Actually it is Global Values List to the Core Application. 

@DavidPetty  Thank you. We found that the Global Values List has its own ID and the script was referencing the application value list ID.