private List <DocuSignEnvelopeCM_v2> FillChangedEnvelopesWithData(DocuSignApiConfiguration config, IEnumerable <DocuSignEnvelopeCM_v2> changed_envelopes)
        {
            var result = new List <DocuSignEnvelopeCM_v2>();

            foreach (var envelope in changed_envelopes)
            {
                var filled_envelope = _docuSignManager.GetEnvelope(config, envelope.EnvelopeId);

                result.Add(filled_envelope);
            }

            return(result);
        }
        public override async Task Run()
        {
            //Get envlopeId from configuration
            var    control    = GetControl <TextSource>("EnvelopeIdSelector");
            string envelopeId = control.TextValue;

            if (envelopeId.IsGuid())
            {
                try
                {
                    var conf     = _docusihManager.SetUp(AuthorizationToken.Token);
                    var envelope = _docusihManager.GetEnvelope(conf, envelopeId);
                    envelope.ExternalAccountId = AuthorizationToken.ExternalAccountId;
                    Payload.Add <DocuSignEnvelopeCM_v2>(AllFieldsCrateName, envelope);
                }
                catch { RaiseError($"Couldn't find an envelope with id={envelopeId}"); return; }
            }
            else
            {
                RaiseError("EnvelopeId is invalid"); return;
            }

            Success();
        }