COMMENTS

  1. Illegal assignment from String to List

    Here you are setting string to the return_x. // start - specify the response you want to send ParkService.byCountryResponse response_x = new ParkService.byCountryResponse(); response_x.return_x = 'USA'; // end But this variable is declared as List of strings.

  2. Apex Error: Illegal assignment from List<String> to String

    I think your error might be on this line: us.Region__c = allProsList; Region__c might be a text field in backend and you are trying save a list in that. Now if you need to add …

  3. trigger

    With the query in it, line 4 could be: newAcc.name = [select LastName from Lead where id = :newL.id LIMIT 1].LastName; But you don't need to query the Leads, and indeed …

  4. Illegal assignment from List<Opportunity> to List<Integer>

    Try List<Opportunity> exp2 = [Select ExpiryDate__c from Opportunity where ExpiryDate__c=Null]; Why are you adding the opportunities CloseDate to the Exp collection? If …

  5. Salesforce: Illegal assignment from List to String (2 Solutions!!)

    Salesforce: Illegal assignment from List to String (2 Solutions!!) Roel Van de Paar. 135K subscribers. Subscribed. 1. 246 views 3 years ago.

  6. Illegal assignment from List to List Exception in Salesforce

    So, you cannot use reserved keywords for your class names. Solution: Change the Class name to resolve this issue. Sample Code for this Exception: public class Contact {. public static List<Contact> contactlist(){. …

  7. [Solved] Illegal assignment from String to List

    String responseName, String responseType) {. // start - specify the response you want to send. ParkService.byCountryResponse response_x =. new …

  8. Illegal assignment from Id to List

    The correct syntax here should be as: Id voterId = [select ID from Vote__c where suggestion__c =: recordId LIMIT 1].ID; If you want to get the List of ids, then you should have …

  9. Illegal assignment from Id to List : r/salesforce

    If you can work with a Set, rather than the List, you could get rid of the second line altogether and access the Case Ids using the .keySet() method of the Map. It's a nice shortcut that can …