Skip to content

IOrganizationService: UI vs SDK

Magnus Gether Sørensen edited this page Jun 30, 2017 · 1 revision

The issue

XrmMockup recognizes that there is a difference between working with CRM though the UI and through the SDK. When a record is created through UI, standard values for TwoOptions and Picklists are populated, but they aren't when creating a record through the SDK. This and other differences means that XrmMockup must differentiate between the UI and the SDK.

The solution

The organization service creaters, that XrmMockup provides, have an alternative declaration that takes a MockupServiceSetting. This class specifies several settings, one of which is the ServiceRole setting that specifies whether this organization service should act like the UI or the SDK. By using this setting, XrmMockup can tailor the execution to the service you want.