title: Custom Workflow Step - Retrieve Field From Entity
body: <p>I have a workflow activity which I use to send out e-mails to suppliers on a regular basis and scheduling follow-up phone calls etc if there is no reply.  However my problem is that I somehow need to retrieve the e-mail for each supplier before sending the message.</p>
  
  <p>How can I go about retrieving the value in a specific field from a specific entity in CRM 2011?</p>
  
  <p>Here is the pseudo-code:</p>
  
  <pre><code>For each supplier entity in the system {
  
       if (sendSalesRequest) {
  
            Send Initial E-mail
            - wait 21 days
            if (noReply) {
                Send Follow up e-mail
                - wait 7 days
                if (noFollowupReply) {
                   schedule phone call activity everyday until reply
                }
            }
        }
  }
  </code></pre>
  
  <p>However, I need a way of retrieving the e-mail address from the suppler entity.</p>
  
  <p>I'm not looking for a worked solution (though I wouldn't turn it down!), just guidelines on how to go about this task as I'm brand new to CRM development.</p>
  
  <p>Thanks,</p>
  
  <p>Tysin</p>