• baba morris
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies
I'm trying to upload data from an external system to salesforce. How can i use external ID to do it?
I want to know how to update check box object field. Currently the check box by default the value is uncheck(false). But I want when user click yes button, the check box object field(yellow highlighted in image) will be change to true. You may refer the image below for better understanding.
User-added imageUser-added imageCurrently I just do as below. But it doesnt work.
{!Return_Shipment__c.Final_Approved__c} == true;
Hi folks, I had the following code working (Pic1), but I wanted to change the SOSL query to SOQL (Pic2) so I could limit the fields the user was searching through.  After changing the query to SOQL however, I'm getting the error "Illegal assignment from Account to List<Account> (29:13)".

SOSL Query:
public with sharing class AccountSearchController {
    @AuraEnabled
    public static List<Account> searchAccounts( String searchTerm ) {
        List<Account> accounts = new List<Account>();
        if ( String.isNotBlank( searchTerm ) ) {
            List<List<sObject>> searchResults = [
                FIND :searchTerm
                RETURNING Account(
                    Id, Name, Phone, Website,
                    BillingStreet, BillingCity,
                    BillingState, BillingPostalCode
                   ORDER BY Name
                   LIMIT 10
              )
            ];
            accounts = searchResults[0];
        }
        return accounts;
    }
}
SOQL Query:
public with sharing class AccountSearchController {
    @AuraEnabled
    public static List<Account> searchAccounts( String searchTerm ) {
        List<Account> accounts = new List<Account>();
        if ( String.isNotBlank( searchTerm ) ) {
            List<List<sObject>> searchResults = [
                SELECT Id
                      ,Name
                      ,Phone
                      ,Website
                      ,BillingStreet
                      ,BillingCity
                      ,BillingState
                      ,BillingPostalCode
                FROM Account
                WHERE BillingState = :searchTerm OR
                      BillingPostalCode = :searchTerm
                LIMIT 50  
            ];
            accounts = searchResults[0];
        }
        return accounts;
    }
}

 
Hello,
We have created an apex class to populate the pre-defined field value for "From" address whose API name is ValidatedFromAddress.
We have to change the value of From field in email action based on the value of case origin field.
We tried many options but the issue is the class is being called for some of the records and for some of the records its not being called.
We have also added our class in the Support settings but still we are not able to figure out the issue can anyone help us in this.

Thanks !