WebCrmApiUpdateLinkedData Method |
Updates or creates records of linked data for the specified entity type.
Namespace: dk.webCRM.ApiSync.WebServiceAssembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntaxpublic UpdateLinkedDataResult UpdateLinkedData(
DataEntityType entityType,
string dataList
)
Public Function UpdateLinkedData (
entityType As DataEntityType,
dataList As String
) As UpdateLinkedDataResult
public:
UpdateLinkedDataResult^ UpdateLinkedData(
DataEntityType entityType,
String^ dataList
)
member UpdateLinkedData :
entityType : DataEntityType *
dataList : string -> UpdateLinkedDataResult
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:
UpdateLinkedDataResultReturns 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
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);
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";
UpdateLinkedDataResult result = proxy.UpdateLinkedData(ticket, DataEntityType.Organisations, data);
See Also