我为Dynamics CRM创建了一个自定义功能区按钮,但我希望仅从Outlook(适用于所有用户)隐藏它。
我们的客户正在使用Dynamics 2011,Dynamics 2013和Dynamics 2015。
我是这项技术的新手,请帮我做。如何以及在哪里?
谢谢!
答案 0 :(得分:2)
您需要<CrmClientTypeRule
Default=["0" | "1" | "true" | "false"]
InvertResult=["0" | "1" | "true" | "false"]
Type=["Web" | "Outlook"]
/>
,MSDN链接以供参考 - &gt; https://msdn.microsoft.com/en-us/library/gg328071.aspx
describe('AService', () => {
beforeAll(() => {
injector = ReflectiveInjector.resolveAndCreate([
AService,
{provide: BService, useClass: MockBService}
]);
Aservice = injector.get(AService);
});
});
class MockBService {
// enter mock functions here that you want to invoke from Service A
// this does not have dependency on Service C
}