Perform Action – Changing the business process via a workflow

So just taking a look at all of the available perform actions in workflows that are provided out of the box and found SetProcess.

SetProcess enables via a workflow to change the current business process of a record. For example, you are working on an opportunity and the decision timeframe is a year, this would most likely have a different sales approach to an opportunity closing in a month. Via a workflow we change the business process automatically.

So how do we do it? It’s easy follow these steps:

  1. Navigate to Settings->Processes
  2. Create a new process of type workflow, give it a name “Change process -long running opportunity” etc
  3. So for my example I create a condition on the Purchase Timeframe, if equal to This year then do action.
  4. I select perform action
  5. pefrom actiom
  6. I select SetProcess and click on properties. All I need to select is the business process and the record to apply it to.
  7. setprocess
  8. Save and close
  9. Finally Activate the process, all done.

When I navigate to my opportunity and update the purchase timeframe to This Year, once I refresh the record the business process will change.

setprocessoppty

 

Advertisements

How cool – creating word documents using a workflow

I just came across this feature the other day, using a pre-built action to generate a word document via a workflow. There are actually 100s of actions that you can explore in workflows that might actually remove some development.

So how do you generate a word document from a workflow, it’s really simple, just follow these simple steps. In my example I will use the OOB account summary template as an example.

  1. Navigate to Settings->Processes
  2. Create a new process of type workflow, give it a name “Generate Document” etc
  3. For my example I am going to make the workflow On Demand, jus to demonstrate the functionality, but think of these examples:
    1. Creating an opportunity summary at the develop stage of an opportunity
    2. Creating a campaign summary at the end of the campaign
    3. Creating a Case report
  4. At the end of the day this is a workflow so all workflow logic applies
  5. So for my example all I need to do is select Perform Action
  6. pefrom actiom
  7. Scroll down the many actions and select SetWordTemplate
  8. setwordtemplate
  9. Leave the Entity as None
  10. Click on Set Properties
  11. Select the template from the dropdown list
  12. Select Account
    1. NOTE: if you are using a custom entity, the entity is required to be enabled for Business Process Flows to be able to be added
  13. stewordproperties
  14. Save and Close
  15. Activate

That’s it, simple. Now when you go to an account record and select to run an on demand workflow, the Generate document will display.

Runworkflow

The document is stored as a note attachment against the record.

docgenerated

At the moment this solution does not attach to SharePoint, but I am sure clever people could expand this capability!