Exemplo n.º 1
0
 public void OnPreCreate1(
     Entities.Account target,
     Entities.IAccountPreimage history,
     Entities.Account.IAccountNameChanged nameChanged,
     [Kipon.Xrm.Attributes.Target] Entities.Account someName,
     ServiceAPI.IAccountService accountService,
     Entities.IAccountMergedimage merged)
 {
 }
Exemplo n.º 2
0
 public void OnPreUpdate(Entities.Account.IAccountNameChanged target, Entities.Account.IAccountPreName prename, ServiceAPI.IAccountService accountService)
 {
     accountService.OnNameChanged(target);
     target.setDescription(prename.Name);
 }
Exemplo n.º 3
0
 public void OnPreCreate(Entities.Account.IAccountNameChanged target, ServiceAPI.IAccountService accountService)
 {
     accountService.OnNameChanged(target);
 }
Exemplo n.º 4
0
 public Actions.AccountCountContactsResponse OnPostkipon_AccountCountContacts(Actions.IAccountCountContactsRequest request, ServiceAPI.IAccountService accountService, string Name, Microsoft.Xrm.Sdk.IPluginExecutionContext ctx)
 {
     if (string.IsNullOrEmpty(Name))
     {
         return(new Actions.AccountCountContactsResponse {
             AMoney = new Money(0M), Count = 0
         });
     }
     else
     {
         return(new Actions.AccountCountContactsResponse {
             AMoney = new Money(10M), Count = Name.Length
         });
     }
 }
Exemplo n.º 5
0
 public void OnValidateCreate(Entities.Account.IAccountMergedImageWithTargetAttributes target, ServiceAPI.IAccountService accountService)
 {
 }
 public void OnPostUpdate(Entities.Account.IAccountPostMergedImage mergedimage, ServiceAPI.IAccountService accountService)
 {
     if (mergedimage.AccountNumber == TEST_POST_UPDATE_ACCOUNTNUMBER)
     {
         accountService.OnPostMerged(mergedimage);
     }
 }