Пример #1
0
        public void Execute(IPluginExecutionContext context)
        {
            DynamicEntity preLead   = (DynamicEntity)context.PreEntityImages["LancamentoAvulsoImage"];
            Lookup        lkpLobPre = (Lookup)preLead.Properties["new_extratoid"];
            var           extratoId = lkpLobPre.Value.ToString();

            if (!string.IsNullOrEmpty(extratoId))
            {
                try
                {
                    Ocorrencia ocorrencia = new Ocorrencia(new Organizacao(context.OrganizationName));;
                    ocorrencia.AtualizaValoresDosLancamentosAvulsosNo(new Guid(extratoId));
                }
                catch { }
            }
        }