New answers tagged

0

You are passing the field parameters to the List constructor instead of the Contact's record constructor. Also the list literal syntax is wrong, you need to use curly braces instead of parenthesis. List<Contact> conList = new List<Contact>{ new Contact( FirstName = 'Test', LastName = 'T', ZTS_EU_Contact_Status__c = '...


1

You have control over this behavior as you can customize duplicate rules. It sounds like your rule blocks the action on edit. If you select allow, you'd be able to edit it to "match" so it'd be caught. In terms of your issue at hand, it does sound like you'd be better served creating a more complicated matching rule to catch the situation you're ...


0

This is a kind of transaction security policy where user is restricted to do certain things based on the action they perform on the org This type of situation is very well handled by TransactionSecurity policies Have read this salesforce developer guide, it has detailed information and explanation to implement. For your use case, you will have to implement a ...


0

The main problem with your query is you are looking for a CreateDate in the future. Change addMinutes(15) to addMinutes(-15).


0

Your query for Campaign Members should be in the execute method. I do believe that where you put it means it would run that query only when you first schedule the class, as opposed to every time it runs.


Top 50 recent answers are included