Redaguoti

Bendrinti naudojant


GetRecIdFromKey

Converts a key to a record ID. The key is always part of the page result.

Method Signature

string GetRecIdFromKey(string key)

Parameters

Parameter Description
key Type: String

The bookmark of the record that includes both primary key and concurrency information.

Results

Result name Description
String Type: String

The record ID that was obtained from the key.

Faults

SOAP fault message Description
[record name] [field] [value] does not exist. Indicates that the record has been deleted by another user or process after it has been retrieved for this operation.

Usage Example

  
Customer_Service service = new Customer_Service();  
Customer cust = new Customer();  
service.UseDefaultCredentials = true;  
string id = service.GetRecIdFromKey(cust.No);  
cust = service.ReadByRecId(id.ToUpper());  

See Also

Basic Page Operations