protected override void ExecuteCrmWorkFlowActivity(CodeActivityContext context, LocalWorkflowContext localContext) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (localContext == null) { throw new ArgumentNullException(nameof(localContext)); } string strToDecode = StringToDecode.Get(context); string decodedString = WebUtility.HtmlDecode(strToDecode); DecodedString.Set(context, decodedString); }
protected override void ExecuteCrmWorkFlowActivity(CodeActivityContext context, LocalWorkflowContext localContext) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (localContext == null) { throw new ArgumentNullException(nameof(localContext)); } string stringToDencode = StringToDecode.Get(context); var base64EncodedBytes = Convert.FromBase64String(stringToDencode); string b64DecodedString = System.Text.Encoding.UTF8.GetString(base64EncodedBytes); B64DecodedString.Set(context, b64DecodedString); }