Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:42:19+00:00 2026-06-11T22:42:19+00:00

I have a workflow activity which I use to send out e-mails to suppliers

  • 0

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.

How can I go about retrieving the value in a specific field from a specific entity in CRM 2011?

Here is the pseudo-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
              }
          }
      }
}

However, I need a way of retrieving the e-mail address from the suppler entity.

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.

Thanks,

Tysin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:42:21+00:00Added an answer on June 11, 2026 at 10:42 pm

    If your new to 2011 I would suggest reading about the SDK. In particular you need to look at custom workflow activity development. It has a number of samples which should help you along the way.

    I would suggest having:

    1. A master workflow, that has a single step to call your custom workflow activity which processes the suppliers. You start this workflow whenever you want to process all the suppliers.
    2. An on-demand workflow that sends the initial email
    3. An on-demand workflow that sends the follow up email
    4. An on-demand workflow that schedules the phone call

    The reason I suggest this is that means you keep the creation of data in workflows where is it easier to manage and handle. E.g. you could change the email message without recompiling your custom workflow activity.

    So first step in your master custom workflow activity, is to query Crm, I would suggest a QueryExpression to start with. That way you can get the data to base you logic on.

    Then you need some code to start a workflow against a record, to send the email and phones calls. There is an example for this here.

    Then you code would look a little like this:

        QueryExpression query = new QueryExpression("supplier");
        query.ColumnSet = new ColumnSet("sendsalesrequest", "noreply", "nofollowupreply");
    
        EntityCollection entities = service.RetrieveMultiple(query);
        entities.Entities.ToList().ForEach(entity => 
            {
                if(entity["sendsalesrequest"] == "Yes")
                {
                    StartWorkflow(entity.Id, "Send Initial E Mail Workflow Name");
                }
                //etc
            }
    

    This is quite high level but should hopefully get you going in the right direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a workflow which has a custom activity which calls a web service.
I'm currently tinkering around with Workflow Foundation. I have an activity which contains the
I have a workflow service which receives a stream through a ReceiveRequest activity. The
I have created Workflow and I have my code activity which is doing expensive
I have workflow designer which I use for authoring workflow; now when I drop
I have a custom workflow activity for which I've written a designer. Unfortunately, when
I have created a custom workflow activity that copies attachments from a case to
I have a workflow that contains a Pick activity. Each PickBranch is triggered by
I have a state machine workflow hosted in SharePoint with a delay activity in
I have a problem with a replicator activity in a workflow. I have set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.