Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2020-09-25 08:44 AM
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
2020-09-25 09:05 AM
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
2020-09-25 09:13 AM
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>"
2020-09-25 09:23 AM
Which documentation Naveenkumar?
Advisory Consultant
2020-09-25 09:26 AM
RSA Archer web services API guide
2020-09-25 09:32 AM
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
2020-09-25 09:43 AM
Thank you can you please suggest the format to be used for cross reference.? to get that output and map a record
2020-09-25 09:55 AM
I did, above, https://community.rsa.com/thread/207009#comment-960288
Advisory Consultant
2020-09-25 10:31 AM
The value will be the record's content id. Check out KB 000029852 - In RSA Archer, how to set the field values for a Cross-Reference or Related Record field using the CreateRecord or UpdateRecord methods in the Record Class Web Service API.
2020-09-25 04:35 PM
Thanks a lot Jeff, This worked perfectly.
Appreciate all your support and immediate response.