17.02.2009, 10:14 | #1 |
Участник
|
Проблема с CallerIdValue
Добрый день. Изучаю CRM 4.0. Взял пример автонумерации поля из книги. Подключил microsoft.crm.platform.callout.base.dll и microsoft.crm.sdk.dll. Возникла проблема с CallerId() и CallerIdValue.
Код: // Standard CRM Service Setup CrmService service = new CrmService(); // We need a user that has global read access to the lead record so that we // have the absolute maximum lead number. If all roles have global read privileges to // the read value of the Lead, then this wouldn't be necessary. // For production, access this guid in a config file. Guid callerid = new Guid("A3222222-EEEE-AAAA-5555-000000000000"); // Impersonate our global read user service.CallerIdValue = new CallerId(); service.CallerIdValue.CallerGuid = callerid; Error 1 CRM.Callout.CrmSdk.CrmService' does not contain a definition for 'CallerIdValue' and no extension method 'CallerIdValue' accepting a first argument of type 'Crm.Callout.CrmSdk.CrmService' could be found (are you missing a using directive or an assembly reference?) Error 2 The type or namespace name 'CallerId' could not be found (are you missing a using directive or an assembly reference?) Подскажите в чем проблема? |
|