Click or drag to resize
WebCrmApiUpdateLinkedData Method
Updates or creates records of linked data for the specified entity type.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public UpdateLinkedDataResult UpdateLinkedData(
	DataEntityType entityType,
	string dataList
)

Parameters

entityType
Type: dk.webCRM.ApiSync.BusinessLayer.EnumsDataEntityType
Entity type.
dataList
Type: SystemString
dataList is formatted in a fixed format like this: id~data1~data2~data3~data4~data5~data6~data7~data8~data9~memo~price~costprice. A dataList can have many lines. Each line is separated by line break ( char 13+10 ). If text ~ or line break should be treated as a part of content then wrappers /# and #/ has to be applied. In the other words, ~ should substituted with /#~#/ and line break with /#line break#/.

Return Value

Type: UpdateLinkedDataResult
Returns error status and the count of processed records.
Remarks
A maximum of 12.000 records is permitted for each entity. New record is created if id in dataList is 0.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);

// Prepare linked data
String data = String.Empty;
data += "0~Linked Data 1~~~~~~~~~~0~0\n";
data += "0~Linked Data 2~~~~~~~~~~0~0\n";
data += "0~Linked Data 3~~~~~~~~~~0~0";

// Save the data
UpdateLinkedDataResult result = proxy.UpdateLinkedData(ticket, DataEntityType.Organisations, data);
See Also