protected override void Execute(CodeActivityContext codeActivityContext)
        {
            Initialize(codeActivityContext);

            EntityReference aftaleEntityReference = IndbetalingEntityReference.Get <EntityReference>(codeActivityContext);

            crm.Indbetaling crm_indbetaling = new crm.Indbetaling(_service, _tracingService);
            crm_indbetaling.Get_by_reference(aftaleEntityReference);

            Maintain maintain = new Maintain(_service, _tracingService, _config, _of_connection);

            maintain.Update_status_in_of(crm_indbetaling);
        }
Example #2
0
        protected override void Execute(CodeActivityContext codeActivityContext)
        {
            try
            {
                Initialize(codeActivityContext);

                int             of_indbetaling_id = Of_indbetaling_id_InArgument.Get <int>(codeActivityContext);
                of.data.Payment of_indbetaling    = _of_connection.Payment.Get(of_indbetaling_id);

                _tracingService.Trace($"of_id: {of_indbetaling_id}");

                Maintain maintain = new Maintain(_service, _tracingService, _config, _of_connection);
                maintain.Create_or_update_one_indbetaling_in_crm(of_indbetaling_id, of_indbetaling);
            }
            catch (Exception exception)
            {
                Write_exception(exception);
            }
        }