title: How to get html generated by razor into a string?
body: <p>I created a workflow using umbraco and what I am trying to do is:
  create a workflow that get the html created by a razor template (<code>umbraco.forms</code>).</p>
  
  <p>Here is the locations where is the templates of <code>umbraco.forms</code> </p>
  
  <blockquote>
    <p>Views\Partials\Forms\Emails
    This template is what I want to send by email when this workflow is called.</p>
  </blockquote>
  
  <pre><code>public class SendMail : WorkflowType
  {  
      //Here I get the path where the razor template is
      [Umbraco.Forms.Core.Attributes.Setting("Path to template",
       Description = "Path to template",
       View = "TextField")]
       public string Template{ get; set; }
     public SendMail()
     {
  
      this.Id = new Guid("ccbeb0d5-adaa-4729-8b4c-4bb439dc0204");
      this.Name = "Send Mail";
      this.Description = "Send Mail";
      this.Icon = "icon-plugin";
      this.Group = "Services";
     }
      //When workflow get called this method is executed 
      public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
     {
  
        //here I'm trying to get the template converted to string however isn't work
       //  string template = html.Raw(Template).ToString();
     }
  
  }
  </code></pre>
  
  <p>I tried <code>string template = html.Raw(Template);</code> but I have no access to the <code>html.Raw("");</code></p>
  
  <p>I've tried <a href="https://our.umbraco.com/forum/umbraco-forms/97435-custom-workflow-using-email-template" rel="nofollow noreferrer">this</a> solutions but seems that <code>record.ParseWithRazorView(filePath);</code> doesn't exists</p>
  
  <p>There is a workflow that do something close but seems I can't re-write or get access to this code</p>
  
  <p><a href="https://i.stack.imgur.com/D6SUP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D6SUP.png" alt="enter image description here"></a></p>
  
  <ul>
  <li><a href="https://our.umbraco.com/documentation/add-ons/umbracoforms/Developer/Email-Templates/" rel="nofollow noreferrer">Email Templates</a></li>
  <li><a href="https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Editor/Attaching-Workflows/Workflow-Types/" rel="nofollow noreferrer">Workflow Types</a></li>
  <li><a href="https://our.umbraco.com/documentation/Add-ons/umbracoforms/developer/extending/adding-a-workflowtype" rel="nofollow noreferrer">Creating a custom workflow</a></li>
  </ul>
  
  <p>If you don't understand exactly what I pretend please comment and I will update the question with all details </p>