Showing posts with label Workflow Action. Show all posts
Showing posts with label Workflow Action. Show all posts

Thursday, December 6, 2012

Creating Workflow Action for assigning a task in Force.com

One of the workflow actions that we can set up to execute in Force.com platform is 'Task Assignment'. Let us explore the steps involved in setting up this type of workflow action using Force.com platform.

From the App Setup -> Create -> Workflow & Approvals -> Tasks, you can create a new Task and use it while setting up workflow actions.

Otherwise, while setting up workflow actions you can click on 'New Task'. Both actions take you to the same page.

If you had come into this page via the 1st route mentioned above, you will need to select the object to which this task belongs to.  In the 2nd route, the object you have selected for the workflow rule is automatically selected for the action as well.

Enter task assignment information. This can be set to a 'User', 'Role', 'Owner' or 'Creator'. Select Status and Priority for the task. Enter the Subject or Title for the task.

Set the due date for the task. This can be set based on a date field of the record or simply set it to the rule trigger date.

You can also check the 'Notify Assignee' box to send out an email notification to the assigned user  when the task assignment is made.



Save your work. If you created a new task, go ahead and associate it with a workflow rule and you will have a workflow action for assigning a task.


Happy cloud computing using Salesforce!

Monday, December 3, 2012

Creating Workflow Action for updating a field in Force.com

One of the workflow actions that we can set up to execute in Force.com platform is 'Updating a Field'. Let us explore the steps involved in setting up this type of workflow action using Force.com platform.


From the App Setup -> Create -> Workflow & Approvals -> Field Updates, you can create new Field Update and use it while setting up workflow actions.

Otherwise, while setting up workflow actions you can click on 'New Field Update'. Both actions take you to the same page.


Enter Name for the Field Update you are setting up. If you had come into this page via the 1st route mentioned above, you will need to select the object to which this field update belongs to.  In the 2nd route, the object you have selected for the workflow rule is automatically selected for the action as well.

Field to Update need to be specified. Based on the data type of the field selected for update, you get different options for specifying new field value. 


  • If it is a nullable field type, you can specify a blank (null) value for the new field. 
  • You can use a formula to set the new value. For example Today() + 7 for a date field.
  • For Record Owners, you can choose the user for new assignment.
  • For a boolean (True/False) type of field, you can select True or False as new value.
  • Another type of field is 'Picklist' where possible values are predefined. If you are updating this type of field, you can set the value to one above or below the current choice or to a specific predefined value.

Re-evaluate Workflow Rules after Field Change checkbox allows you to re-evaluate all workflow rules on the object after the field value is updated and hence trigger any workflow rules if the criteria are met. 

Save your work. If you created a new field update, go ahead and associate it with a workflow rule and you will have a workflow action for updating a field.


Happy cloud computing using Salesforce!

Friday, November 30, 2012

Setting up global email address for your organization in Force.com

When you set up workflow to send out emails in Force.com platform, you can set the from address to a generic email address of the organization. For example, instead of your own email address you could use contact@yourcompany.com. 

To be able to set these standard email address as from email address, you first need to set it up using a feature called organization-wide address.

Go to Administration Setup -> Email Administration -> Organization-Wide Addresses. By clicking on the 'Add' button you can enter an email address. You can use this across all profiles or limit to only certain profiles to use as from address.

Once the email address is added, a verification email is sent to that email address. The verification email provides a link where you can go and verify the email address. Until the verification is done, platform keeps that email address in 'Verification Request Sent' status. Once the verification is done, status changes to 'Verified'.

You will be able to use any of the verified status organization-wide email addresses as from email address for email alerts.

Happy cloud computing using Salesforce!

Creating Workflow Action for sending out email alerts in Force.com

One of the workflow actions that we can set up to execute in Force.com platform is 'Sending out Email alerts'. Let us explore the steps involved in setting up this type of workflow action using Force.com platform.

From the App Setup -> Create -> Workflow & Approvals -> Email Alerts, you can create new email alerts and use it while setting up workflow actions.

Otherwise, while setting up workflow actions you can click on 'New Email Alert'. Both actions take you to the same page.



Enter Description for the Email Alert you are setting up. If you had come into this page via the 1st route mentioned above, you will need to select the object to which this email alert belongs to.  In the 2nd route, the object you have selected for the workflow rule is automatically selected for the action as well.

Email Template need to be specified. There are some standard email templates provided by the platform. If you need your own customized template, you must set up your email templates  in advance via Administration Setup -> Communication Templates -> Email Templates.

Email Recipients must be specified. There are 2 different ways you can specify who should receive the alerts. If your alert is going to someone in your organization, look for the recipient by Recipient Type. Based on your selection in the type, you get the Available Recipients list. You can select recipients among them. You may also specify up to 5 additional free form email addresses at the bottom section, if the recipient is someone outside your organization network in the Force.com platform.

From Email Address can be set to workflow user's email address or one of the organization-wide address that has been set up.

Save your work. If you created a new email alert, go ahead and associate it with a workflow rule and you will have a workflow action for sending out emails.

Happy cloud computing using Salesforce!

Wednesday, November 28, 2012

Setting up Workflow Actions in Force.com

As we learnt in Creating Workflow Rules in Force.com, the 3rd step is to specify the workflow actions that will be executed when the rule criteria are met. Let us now learn how to set up workflow actions in Force.com platform.

When you are in 3rd step of the workflow rule creation process which is specifying workflow actions, you will see 2 different sections. Immediate Workflow Actions and Time-Dependent Workflow Actions.

Immediate Workflow Actions - As the name indicates, the actions set up here executes instantly when the rule criteria are met.

Clicking on the 'Add Workflow Action' button gives you option for either selecting an existing action or creating a new action. As we learnt before in Workflow and Approval Process article, the action could be a Task, Email Alert, Field Update or Outbound Message. You can set up one or more actions of the same type or combination.

Time-Dependent Workflow Actions - Actions that you can set up in this section are same as above but they are time dependent. You add a 'Time Trigger' first and then add workflow actions  to that time trigger. The time trigger adds a delay before the action executes. This delay could be in terms of Days or Hours and could be before or after. You can add multiple time triggers. And just like the immediate workflow actions, you can set up one or more more actions of the same type or combination to each time trigger.

For example, you can set up field update and task assignment actions to execute 5 hours after an opportunity is closed. You can set up task assignment and email alert actions to execute 30 days after an opportunity is closed.

We will see each of the action types in detail in our future articles.

Happy cloud computing using Salesforce!