Skip to main content

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.
1 answer
0/9000
1 answer
0/9000
1 answer
0/9000
1 answer
0/9000

We are trying to customise our input and output with the new Custom Lightning Types on Agentforce (Default) chat Interface,. We were able to deploy 2 CLTs but, suddenly deployment of Lightning types started failing to that org. 

 We are getting the below error:

 

fileName: editor.json, 

 filePath: lightningDesktopGenAi/editor.json, 

 messages: [Something’s not right with the definition name c/flightRequestFilter. Check the name and try again.]

 

We have made sure the name of the referenced LWC is same to what mentioned in the editor.json. 

 Please let us know if this is the known issue or has any workaround to resolve this.

1 answer
0/9000

When we try to publish the Tableau dashboard to the tableau server we are getting the Error code : ACF37E18  We are using  Tableau desktop version : 2021.4.2

Tableau server version : 2021.4.2  Can you please help at the earliest.   Tableau dashboard size : 25- 29 GB.

1 answer
0/9000
Hi All,

i am trying to automate a lightning component . i write a script for it .

but i have a lookup field on it i dont know how to test it?

my script is given below:-

package myPackage;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.chrome.ChromeDriver;

import org.openqa.selenium.support.ui.ExpectedConditions;

import org.openqa.selenium.support.ui.WebDriverWait;

public class FamilyRecords {

    public static void main(String[] args) {

         // declaration and instantiation of objects/variables

        System.setProperty("webdriver.chrome.driver","C:\\Users\\user\\Downloads\\Chromedriver_win32\\chromedriver.exe");

        WebDriver driver = new ChromeDriver();

        String baseUrl = "https://login.salesforce.com";

        driver.get(baseUrl);

        driver.findElement(By.id("username")).sendKeys("kmalek@fbgholdings.com.sfdcadmin");                        

        driver.findElement(By.id("password")).sendKeys("2&*ZMRrGFSx&");                        

        WebElement login = driver.findElement(By.id("Login"));

        login.submit();

        driver.navigate().to("https://fbg--sfdcadmin.lightning.force.com/lightning/r/Account/001S000000zb9KyIAI/view?0.source=alohaHeader");

        WebElement newpage = driver.findElement(By.cssSelector(".slds-button, .slds-button_neutral, .buttonStyle"));

        newpage.click(); 

        //driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);

        driver.navigate().to("https://fbg--sfdcadmin.lightning.force.com/lightning/o/FBG_Family__c/new?nooverride=1&backgroundContext=%2Flightning%2Fr%2FAccount%2F001S000000zb9KyIAI%2Fview%3F0.source%3DalohaHeader&0.source=alohaHeader");

        System.out.println("click submit");

        WebDriverWait wait=new WebDriverWait(driver, 20);

        WebElement namefield = wait.until(

                ExpectedConditions.visibilityOfElementLocated(By.id("5998:0")));

        namefield.sendKeys("June12");

        WebElement namefield2 = wait.until(

                ExpectedConditions.visibilityOfElementLocated(By.id("6103:0")));

        namefield2.sendKeys("June12");

        WebElement Accsubmit = driver.findElement(By.cssSelector(".slds-button, .slds-button--neutral, .uiButton--brand, .uiButton, .forceActionButton"));

        Accsubmit.click();

        System.out.println("record submit");

        WebElement option1 =  driver.findElement(By.cssSelector(".slds-checkbox_faux"));                            

        //This will Toggle the Check box         

        option1.click();    

        driver.close();

        

    }

}selenium testing for lookup combo box

 
3 answers
  1. Today, 10:07 AM

    Hey there! 

    I recently struggled with the exact same issue and finally found a solution that works reliably for Salesforce lookup fields. The key is to work *with* the dynamic nature of the lookup rather than trying to force it. Here's what worked for me: 

     

    public class LookupHelper { 

        public static void selectLookupItem(WebDriver driver, WebDriverWait wait,  

                By lookupLocator, String searchText, String itemText) { 

             

            // 1. Find and activate the lookup field 

            WebElement lookup = wait.until(ExpectedConditions.elementToBeClickable(lookupLocator)); 

            lookup.click(); 

            lookup.clear(); 

             

            // 2. Type the search text to filter results 

            lookup.sendKeys(searchText); 

             

            // 3. Wait for and locate the results dropdown 

            By resultsLocator = By.cssSelector("div[role='listbox'] li"); 

            wait.until(ExpectedConditions.visibilityOfElementLocated(resultsLocator)); 

             

            // 4. Find and click the matching item 

            driver.findElements(resultsLocator).stream() 

                .filter(e -> e.getText().contains(itemText)) 

                .findFirst() 

                .orElseThrow(() -> new NoSuchElementException("Item not found: " + itemText)) 

                .click(); 

        } 

    ``` 

     

    **Usage example:** 

    ```java 

    LookupHelper.selectLookupItem( 

        driver,  

        wait, 

        By.xpath("//input[contains(@placeholder,'Search Accounts...')]"), 

        "Acme", 

        "Acme Corporation" 

    ); 

     

0/9000
1 answer
0/9000

Hello Everyone, 

 

Is there any way to change the list of related list i see in the work order page in FSL mobie 

 

i have attached a screenshot of this. 

FSL Mobile Work Order Overview page

 

 

 

#FSL Mobile  #Salesforce Field Service  #Field Service App

1 answer
0/9000

Hello. Apologies for the simple questions but I'm getting myself confused around non profit cloud. We are looking at case management to record the 'onboarding' of people to a service and as part of this need to capture some information at the time they start and then some others after. I'm getting myself in a mix as to what object to use for what: 

 

- Initial onboarding referral information, consents etc. (one off) 

- General risk assessment (one off) 

 

- Risk assessments (multiple) 

- Specific questions for different types of interactions 

 

Assessments, care plans and action plans are blurring in my head at the moment - Any pointers massively appreciated.

0/9000