AddLookupRecord Functions
The AddLookupRecord and AddLookupRecordSession functions add a record to the specified FRACAS Lookup Table file. These two functions differ only in respect to parameters for login. For more information, see Login Parameters.
Syntax
The following is the syntax for an HTTP request:
POST /Windchill Risk and Reliability/DataEngine.asmx/AddLookupRecord HTTP/1.1
Host: HostName
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=string&Password=string&GroupName=string&ProjectName=string&SLookupFileName=string&Key1=string&Key2=string&Key3=string&Key4=string&Key5=string
Parameters
In addition to login parameters, both the AddLookupRecord and AddLookupRecordSession functions use these parameters:
ProjectName—The name of the Windchill Risk and Reliability Project. This value is case-sensitive.
LookupFileName—The name of the FRACAS Lookup Table file. This value is case-sensitive.
Key1—The value of the first key field. This value is case-sensitive.
Key2—The value of the second key field. This value is case-sensitive.
Key3—The value of the third key field. This value is case-sensitive.
Key4—The value of the fourth key field. This value is case-sensitive.
Key5—The value of the fifth key field. This value is case-sensitive.
The following is an example of an HTTP POST request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/AddLookupRecord HTTP/1.1
Host: vm-test
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=Bill&Password=b3am3r&GroupName=Manager&ProjectName=Tablet PC &LookupFileName=FRACAS Lookup Table 1&Key1=San Jose AFB
Returns
If the user is authenticated and the specified parameter values are found, the record is inserted and ‘true’ is returned.
<?xml version="1.0" encoding="utf-8"?>
<DataEngineResponse xmlns="http://tempuri.org/">
<Success>true</Success>
</DataEngineResponse>
If ‘false’ is returned, AdditionalData provides the reason that the call failed. For example, the following line can be returned:
<AdditionalData>The specified key combination already exists.</AdditionalData>