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

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Creating a record and mapping it to a cross referenced application record.

NaveenkumarLala
Contributor II

Hi All,

 

I am using the createrecord webservice API call.

 

Basically while creating a record in the vulnerbaility scan results i am trying to link a device on which the scan is performed. The devices is a cross reference application within the scan results application. When i run the below call, It is creating the scan result record but it is not linking to the Device IP. Can you please advice if i am missing something.

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CreateRecord xmlns="http://archer-tech.com/webservices/">
<sessionToken>17EF1575F0A4C128665DD8166D8E0EED</sessionToken>
<moduleId>315</moduleId>
<fieldValues>
<![CDATA[<fieldValues>
<Field id="7447" value="test1234" />
<Field id="25444" guid="FC6F6A70-55B9-424A-9FD8-A48BF3D191ED"
type="9">
<Reference id="28167" value="10.18.143.35" />
</Field>
</fieldValues>]]>
</fieldValues>
</CreateRecord>
</soap:Body>
</soap:Envelope>

 

Best Regards,

Naveen

9 REPLIES 9

DavidPetty
Archer Employee
Archer Employee

Naveenkumar, not sure where you got the <Reference> tag from but the proper format would be:

<Field id="28167" value="10.18.143.35" />‍‍‍

 

You can find how to format the fields here, XML Formatting Guidelines for Field Input 

 Advisory Consultant

Thanks for the immediate response David.

However even if i give the field id tag it doesnt map to the cross reference record.

 

I am trying to use the below format as per the document

 

"<Field id="13115" guid="3abdaac6-18f4-431e-a263-f7aec27caf34"
type="9">
<Reference id="269954">01 Information Access
Control</Reference>
<Reference id="270053">Title of My InfoSec Policy</Reference>
</Field>"

Which documentation Naveenkumar?

 Advisory Consultant

RSA Archer web services API guide

Thank, but that format is for the output of a record and not the creation/update of a record.

 

From the guide:

The following table describes the attributes and values the Web Services API returns for various field types.

 

Try formatting the XML as I mentioned above and see.

 Advisory Consultant

Thank you can you please suggest the format to be used for cross reference.? to get that output and map a record

I did, above, https://community.rsa.com/thread/207009#comment-960288 

 Advisory Consultant

Thanks a lot Jeff, This worked perfectly.

Appreciate all your support and immediate response.