Knowledge found and lost while working with Microsoft Dynamics CRM
RSS icon Home icon
  • Using CRM workflow to overcome laziness, I mean, become more efficient

    Posted on January 22nd, 2010 mitch Print Print 2 comments

    CRM workflow can be used for all sorts of interesting things and can sometimes help you do your job in a surprising number of ways.

    Let’s take the following example as a “surprising” way.  I have entered some sample data, but after I entered the data, I realize that I really didn’t make most of the records verbose enough to be useful, as you can see from the following screen shot:

    image

    I now have two choices: Edit by hand all of the single-word records or come up with some fancy bulk editing technique to get the work done for me.

    Let’s go with option number two and see where we end up.

    What Won’t Work

    I can’t use the bulk edit feature because I want all of my records to be different.

    I also don’t want to edit them by hand, as mentioned above.

    Finally, I don’t want to write any code because that would be a real waste of my time.

    How about a Workflow?

    Have you ever considered using workflows for editing?  No?  Well then, let’s give it a shot.

    Step 1: Create the workflow

    This is pretty basic workflow at this point.  We have given the workflow a name and selected the entity, which is a custom entity called News.

    We’re using CRM Online so the Scope defaults to Organization.

    Finally, we will be executing this workflow manually so we want to clear all of the check boxes except for On demand.

    image

    Step 2: Add a workflow step

    Now we need to add an Update step to our workflow.  In this step, we will be updating both the Headline attribute and the Body attribute, as you can see below:

    image

    If you look closely at what we’re updating we are adding new text into each field then we are adding the field to itself.  Huh?  Will that work?  You bet.

    Here is what is happening ( using the Headline attribute as an example ).  We are actually performing the following calculation:

    “This is important news headline number “

    +

    [the existing contents of Headline]

    Which results in something like:

    This is important news headline number one.

    We then perform a similar calculation on the Body attribute.

    After publishing our workflow, we can put it to use.

    Step 3: Executing the workflow

    After returning to our News View, we need to select all of the News records that need to be updated.  When you click run workflow button, the following dialog will appear:

    image

    You need to click OK to select the workflow then OK again to run actually it.

    Step 4: Viewing our results

    After waiting a short amount of time for the workflows to execute, we can then refresh the News view and see the results of our handiwork:

    image

    Is that not cool or what?

    Conclusion

    So what did you think?  Does that open up your eyes a little as to the possibility of using workflow to edit data?

    And how long did it take?  Less than two minutes. And that is with me taking screen shots and pasting them into Windows Live Writer so I could write this article.  Since it was only two fields, I could have actually done the whole thing in less than a minute if I was really trying.

    Good luck with your own workflow efforts.

    Dynamics CRM, Workflow
    1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
    Loading ... Loading ...
    494 views
     

    2 responses to “Using CRM workflow to overcome laziness, I mean, become more efficient”

    1. Mitch, I can't agree more. Now lets take that to the next level. Imagine I have 5 or 10 other applications in that workflow. How do I do that? 50 or 100 steps? Eeek. Quite common and not the fault of the user (laziness) but rather lack of collaboration between the apps. Even after 30 years, most enterprise apps lack the basic capability to have their workflows automated like in the sample you give!

      Using products like OpenSpan, you can now truly extend the CRM workflow you describe above, to include spreading the automation over any number of applications and UI tasks.

      We call it Personal Workflow Management, can be done with no or little code, it's truly robust and you'll find it at OpenSpan.com.

      Keep up the good writing. These are key subjects to optimization that people need to understand.

    2. Mitch,

      I love CRM & Workflow. I can see what you are doing, but I can't see how it's meaningful in this example.

      Headline number one, two, three OK, I get that, but I'd expect a summery of the story in the body, not the number repeated.

      Do you have any other material on this subject you could share? Please forgive me, I was not gifted with creativity.

      Thanks!

    Leave a reply