11 votes
Accepted

How to add fields to "New Event" under "Activity" tab in Lightning?

You can't edit the Activity Publisher component, but you can change the set of tabs that appear therein. They're Quick Actions. You can control which Quick Actions appear in the Activity Publisher by ...
David Reed's user avatar
  • 92.6k
8 votes
Accepted

Remove tabs from activities in lightning

For removing the actions in Lightning, Go to Setup->Object Manager then select the object. Go to page layouts and edit the Page layout currently assigned. Under "Salesforce Mobile and Lightning ...
Sanket Mandhare's user avatar
7 votes
Accepted

Is it possible to create Script Activities through Marketing Cloud API?

If you don't mind using undocumented REST endpoints, then yes! you can. Create POST /automation/v1/scripts Host: {{subdomain}}.rest.marketingcloudapis.com Authorization: Bearer {{authToken}} Content-...
Gortonington's user avatar
  • 30.5k
7 votes
Accepted

Is there any reason we shouldn't allow activities on custom object

There is no technical reason to make that decision. It depends on the business needs and the object itself. There is no reason to add a feature that your users won't use -- it just adds to clutter ...
Charles Koppelman's user avatar
6 votes
Accepted

get all task related to contact in developer console

You will need to SOQL Contact first then feed the Tasks List with those ContactIds to get the related Tasks. Contact SOQL Contact[] cons = [SELECT id from Contact ]; Now, feed these ContactIDs to ...
Mahmood's user avatar
  • 5,969
6 votes

How to stop users from deleting Activities?

You can use an Apex Trigger which leverages the SObject.addError method. You should look into trigger best practices such as handlers, service/domain layer, etc, but the basic idea would look like: ...
Adrian Larson's user avatar
  • 150k
5 votes

Insufficient Privileges - Visualforce Page - Occurs as System Admin

It looks your system admin profile may not have one of these permission:- License to access that managed package. Access to the visualforce page. Access to the class the visualforce page calls. ...
maniac coder's user avatar
5 votes

Activities on Leads, Opportunities, and Accounts SOQL

The object you should query is OpenActivity and ActivityHistory So your query should be SELECT Report_Country_L__c, (SELECT Owner.Name,ActivityDate,Status,istask,ActivitySubtype, Subject FROM ...
Vigneshwaran G's user avatar
5 votes
Accepted

Any reason not to check "Optional Features" when creating custom objects?

The reason you would de-select them is to make your custom object a Light Application Object, which could then allow you to use the Force.com App Subscription license type. Store Information That’s ...
Adrian Larson's user avatar
  • 150k
5 votes
Accepted

What happens when I delete the Task related to an EmailMessage?

Note: Some of the following is conclusions my team reached for which we could not find explicit documentation; Salesforce support eventually confirmed our findings, just this past week. The ...
Jason Clark's user avatar
  • 11.8k
4 votes
Accepted

Error: Compile Error: Field is not writeable: ActivityHistory.RelatedTo__c

ActivityHistory is a read-only: This read-only object is displayed in a related list of closed activities—past events and closed tasks—related to an object so any modifications you want to do ...
Keith C's user avatar
  • 136k
4 votes
Accepted

Activities past due dates are still displaying in Next Steps section in LEX

Yes, you'll notice the dates are highlighted in red, which indicates that they are open tasks that are past due. This same behavior happens in Classic as well on places where you can view open tasks (...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

What are the objects/entities that are NOT allowed in an inner join SOQL query?

At the bottom of Comparison Operators in the SOSL/SOQL reference, it gives you the information you're looking for The following objects aren’t currently supported in subqueries: ActivityHistory ...
Derek F's user avatar
  • 60.9k
3 votes

Recordtype and Pagelayout

Answering your two questions: Is it possible to have the record type in the same page layout of the task? If so, how can i accomplish it? No, by standard way, it first asks for RecordType then ...
Ashwani's user avatar
  • 22.6k
3 votes

get all task related to contact in developer console

Additionally you can also use inner or outer join in SOQL to get Tasks based on Contact. Outer join SOQL example: SELECT Id, Subject FROM Task WHERE WhoId IN (SELECT Id FROM Contact) Inner ...
Raul's user avatar
  • 18.7k
3 votes

Activities on Leads, Opportunities, and Accounts SOQL

You need to query on Event and Task object to retrieve Activities for Lead object. You can verify the Relationship name using Workbench --> Info --> Standard and Custom Object -> Select and Object for ...
Devendra's user avatar
  • 5,075
3 votes

Activities on Leads, Opportunities, and Accounts SOQL

You need to use the correct relationship name to access tasks from the Lead parent object. That relationship name is usually slightly different from the Object name. In this case, the relationship ...
Guy Clairbois's user avatar
3 votes

Repercussions for Closing a Case

The only way the report or any of it's related items like activities are going to show up any different in your reporting is if the case status is a filter, or bucket, on a report. For the case to be ...
KWo's user avatar
  • 56
3 votes
Accepted

Best Practice - Update LastModifiedDate (Cross Object)

Just update the records. Even if you could write to the LastModifiedDate, it would then just change to the time at which you are performing the update, I think. There is no reason to go to extra ...
Adrian Larson's user avatar
  • 150k
3 votes

modified date or create date modification on Task import using DataLoader

It sounds like you are doing Data Migration. You can definitely set any SObject createDate to a user-defined value by using the following feature in Setup (taken from Help doc): Setup -> Customize ...
cropredy's user avatar
  • 70.8k
3 votes
Accepted

Upload events recurrence end error

Depending on the type of event, Salesforce restricts the number of recurrences that can occur. To avoid the error, you must specify a date/time that is no later than the date in the error message. To ...
sfdcfox's user avatar
  • 487k
3 votes
Accepted

Missing New Task and Log a Call button in Lightning

I noticed that, if we have record types on task object, the standard buttons will not show up in the Activity publisher. We may have to create Quick Actions to create Tasks. If we create quick actions,...
Ajay 's user avatar
  • 1,579
3 votes
Accepted

How to stop users from deleting Activities?

A trigger that fires before delete can put an error on those records if they meet desired criteria. trigger PreventDelete on Event (before delete) { if(UserInfo.getUserId() != "##...
DavidSchach's user avatar
  • 5,874
3 votes

How to stop users from deleting Activities?

If you want to do this declaratively, turn off the Delete permission for those users' profiles. Separate answer because totally separate approach.
DavidSchach's user avatar
  • 5,874
3 votes
Accepted

create query and filter option is gone?

SFMC has been pushing to move people off of using interactions inside email studio, so during pretty much any maintenance or 'update' that they do (Like the one done Friday), they wipe away all those '...
Gortonington's user avatar
  • 30.5k
3 votes
Accepted

Trigger : How to track once an event moves from "Open Activities" to "Activity History"?

See also: What fields determine what is displayed in Open Activities vs. Activity History For Task records, you can write a trigger that compares the old and new value of IsClosed. trigger Task on ...
Adrian Larson's user avatar
  • 150k
3 votes
Accepted

Translation of Subject field on Task Object

Subject is something called a Combobox, which is really just a fancy way of saying it's a text field with a set of predefined options you can select from. Since it's really a text box, no translation ...
sfdcfox's user avatar
  • 487k
3 votes
Accepted

SFMC SQL query most recent record MAX()

It looks like just some syntax errors. As @Data_Kid pointed out there were issues with extra commas and you needed to bracket or double quote the DE name. He was missing one item though, Max[Created ...
Gortonington's user avatar
  • 30.5k
3 votes
Accepted

Do not see Event object in Dataloader

Some of the developers on the project renamed the Label of the Event object. Thank you @sfdcfox.
Dmitry's user avatar
  • 83
3 votes

How to add fields to "New Event" under "Activity" tab in Lightning?

First, you have to create the field under Activity in the Object Manager and assign it to the event layout. Next, in Setup, type Global Actions in the Quick Find box. There, you will see the New Event ...
kai998's user avatar
  • 59

Only top scored, non community-wiki answers of a minimum length are eligible