New answers tagged

0

You are missing the declaring the instance variables as properties in your inner class: public class consoleWrap{ public String NAME {get; set;} //ROYAL DUTCH SHELL PLC public String BVDID {get; set;} //NL34179503 public String COUNTRY_ISO_CODE {get; set;} //NL public String NACE2_CORE_CODE {get; set;} //6420 public String ...


3

Your batch class is causing Contact trigger invocation, which then attempts to recursively enqueue the batch class - that's not allowed. Here's where it happens: update scope; You actually don't need this as written, because you don't mutate the Contacts at all. However, it fires a Contact Update DML, to which your trigger responds: trigger ...


3

this error is occurring due to this sequence of operations. Some user or automation updated record trigger executes and calls the future method future method ( or batch from a trigger) executes and updates the record The trigger runs again in response to DML by the future method and calls the execute batch method so the trigger is now in the future context ...


1

There is a spurious space character or duplicated field path element in your Dynamic SOQL query: String soqlQuery = 'SELECT Account.Branch_Id__c, Account.Parent_Account_Name__c, Account. Account.Date_became_Customer__c, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Account.Go_Live_Date__c, Account.Name, FirstName, LastName, Email, Id FROM Contact WHERE Id IN :...


0

I tried your suggestion. I am getting error on bluk upload. Public class RolleupsumLeads{ // When leads are inserted Public static void afterinsert(List<Lead__c> Leads){ Rolleuphandeler(Leads); } //handler method to call the Flow Public static void Rolleuphandeler(List<Lead__c> Leads){ for (Lead__c Ld : (List<Lead__c>)...


1

The Name field is a compound field, which is a combination of FirstName and LastName. It cannot be written, only read. public class ContactSearch { public static list<Contact> searchForContacts(string lastname, string b) { // list<Contact> c = new list<Contact>(); /* // None of this work is necessary here: ...


4

What you implemented is fine. I assume it could be because of cache issue. However, the way you implemented is not the best practice per-se. You should be using aura:if. Below is how it would look like: COMPONENT: <aura:component implements="flexipage:availableForAllPageTypes" access="global" controller="ControllerClass"> <...


0

Try these options: 1. Use elements1[0].style="display:none"; //instead of .style.display OR Define an aura attribute and use aura:renderIf 2. <aura:renderIf isTrue="{!v.truthy}"> True <aura:set attribute="else"> False </aura:set> </aura:renderIf>


0

Regarding your errors, For error 1: You are calling the constructor without any parameter, but you defined your constructor to accept two parameters. For error 2: co.asset__c is a lookup field (of Id data type), but you are comparing it against an SObject. public static void ChangeOrderDuplicateChecker(List<Change_Order__c> cos) { ...


Top 50 recent answers are included