Creating Tasks from Apex in Salesforce

Trey AroseSalesforce, Technical Tips1 Comment

Creating Tasks from Apex in Salesforce

Tasks in Salesforce.com are a powerful tool that can help users and managers in the environment complete assignments associated to business processes. You can create tasks manually, through workflows, or custom Apex code. In this blog, we are going to show you how to create a task via Apex Code. When creating a new Task, you will need to include all required fields from the Task object. By default the Subject, OwnerId, Status, and WhatId fields are required, and will need to be included in the Task creation, along with any other fields your organization have marked as required. The … Read More