WebCrmApiReadFromWebcrmById Method |
Returns a list of entities basing on the given
organisationID and
recordID.
If
entityType is
Organisations then organisationID and recordID must me equal.
ReadFromWebcrmById is deprecated, please use ReadFromWebcrmByIdDirect instead.
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 WebCrmDataCollection ReadFromWebcrmById(
DataEntityType entityType,
long organisationID,
long recordID
)
Public Function ReadFromWebcrmById (
entityType As DataEntityType,
organisationID As Long,
recordID As Long
) As WebCrmDataCollection
public:
WebCrmDataCollection^ ReadFromWebcrmById(
DataEntityType entityType,
long long organisationID,
long long recordID
)
member ReadFromWebcrmById :
entityType : DataEntityType *
organisationID : int64 *
recordID : int64 -> WebCrmDataCollection
Parameters
- entityType
- Type: dk.webCRM.ApiSync.BusinessLayer.EnumsDataEntityType
Entity type. - organisationID
- Type: SystemInt64
Organisation ID of the requested entities.
If this value is 0 then returns data for all organisations.
Otherwise returns data only for the specific organisation. - recordID
- Type: SystemInt64
Identifier of the requested entities.
If this value is 0 then returns data for all records found.
Otherwise return data only for the specified record.
Return Value
Type:
WebCrmDataCollectionReturns error status and a list of entities.
Examples
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);
WebCrmDataCollection collection =
proxy.ReadFromWebcrmById(ticket, DataEntityType.Activities, 35, 1);
See Also