Skip to main content Besuchen Sie uns auf der TDX in San Francisco oder bei Salesforce+ vom 5. bis 6. März, um die Entwicklerkonferenz für die Ära der AI-Agenten zu erleben. Jetzt registrieren.

#LWC118 diskutieren mit

I have a screen flow that includes a Managed LWC (Product Configurator Flow in RLM - Revenue Cloud). One of the Managed LWCs contains a button labeled "Save & Exit." When clicked, this button performs its default functionality.

I need to extend/customize this flow while preserving its default behavior. To achieve this, I added an Apex action after the screen element for my custom requirement. However, I encountered an issue—when clicking the "Save & Exit" button, the entire flow terminates, preventing the Apex action from executing.

The only way I see to resolve this is by passing an event from the "Save & Exit" button in the managed LWC to my custom LWC, from where I can resume the customized flow. However, since I don't have access to modify the managed component directly, I’m struggling to capture the click event from the button and pass it to my custom LWC. I’ve tried different approaches, but nothing has worked so far.

Could you please help me with this? 

 

#LWC  #Screen Flow  #Salesforce Developer  #Revenue Cloud

1 Antwort
0/9000

Hello! 

My requirement is  

we have a partner user who acts as an admin so he should be able to convert the account as a partner to create a partner user from the portal. 

is it possible? 

I have added the "Enable as partner" button on the account layout. Still, partner users can't see the button on the portal account page. 

So is this requirement achievable? 

Can partner user be able to enable account as partner and create partner user from portal

 

 

 

#Salesforce Developer  #Experience Cloud  #TrailblazerCommunity  #LWC  #Lightning Experience

1 Antwort
  1. 27. Feb., 23:15

    Enable as Partner user button is designed for internal users in the org, and it is not accessible to partner users through the portal, except you want to develop a custom solution using LWC and Apex 

0/9000

I have an LWC, which is managed and called inside a Flow. After clicking Save on the footer of the LWC, I need to call an Apex method. This means I need to extend the Flow, but since it is managed, I am unable to do so by adding another element. The Flow terminates when the Save

button is clicked. Is there any way to extend it, or do is there any way to capture the event and pass it to a custom LWC? 

 

#Salesforce Developer  #Revenue Cloud  #Flows  #LWC

0/9000

Welcome to the #TrailblazerCommunity! 👋 Take a moment to introduce yourself below. 💙

 

Tell us all about YOU:

What are you passionate about?

What are you looking to learn?

Where are you located?

 

Feel free to connect with others in the thread! 👇

1.358 Kommentare
  1. 27. Feb., 13:24

      #TrailblazerCommunity

    ! 👋💙 

     

    Hi Trailblazers and Rangerheads! 

    Forgot to introduce myself 3 years ago! haha

      

    I'm Napoleon, you may call me Naps for short, a Success Engineer and Salesforce Administrator. 

     

    Just funsies about MYSELF:

    What are you passionate about? 

    -Passionate about technology, photography, video editing and AI! 

     

    What are you looking to learn? 

    -A lot of things! AI, the architectural and dev side of salesforce too! 

     

    Where are you located?  

    -In a small City in the Philippines, not Manila but I work there! You guys should come visit our country!

0/9000

Hi, 

I've Lightning component that fetch Weather forecast data display on record page. When I change city Name it fetches the data for updated city but only after page refresh.

Is there any way to get newly fetch data without page refresh? 

 

#LWC  #Javascript

1 Antwort
0/9000

🚀 Introducing the Dual Slider Component for Salesforce Flows! 

 

Salesforce Flows come with a default single slider component. But what if you need to select two values instead of one? 🤔 

 

We’ve built a custom Dual Slider Lightning Web Component that works seamlessly inside Screen Flows! 🎉 

 

✅ Easily select two values  â€“ perfect for range selections, filters, and more. 

✅ Set custom ranges - directly within the Flow as per your requirements. 

 

🎥 Watch the Demo Video Here: YouTube Demo Link

📌 Get the Component Package: GitHub Repository Link

 

We’d love to hear your feedback! Let us know how this helps you and feel free to share any suggestions. 🚀 

 

#Flow #Salesforce Developer #Sales Cloud  #Automation #LWC

1 Kommentar
0/9000

Hello,

 

we are facing this weird issue and it is happening only in production. In our Omniscript, which is running inside of community, we have custom LWC and Flexcard where sometimes, the custom labels are displayed as its names (like MY_LABEL instead it's actual value or translation) and it actually happens only for certain languages. At first it was appearing for Dutch (translation), but now it happens for english (values).

 

We are using fetchCustomLabels() function in custom LWC and referencing labels as {Label.MY_LABEL} in flexcard. I see the label names are instead of values in Session storage as well. Looks like some caching issue.

 

Any idea how to fix?

 

#Omnistudio #Flexcard #LWC #Custom Labels #Community

11 Antworten
  1. 11. Feb., 22:23

    Hi @Vojtěch Dlápal

    : I understand this is an old thread.  The above issue happens, when one of the custom labels is missing from the Org. Please check if one of the labels in the labelsArray is missing from the Org. If yes, add that and it should resolve the issue. 

     

    You can test the custom labels with the following code. The code will throw an exception if the custom label does not exist. For example, if the name of the custom label is "MyLabel" then execute the following in an Anonymous window: 

    try {

                System.debug(Label.MyLabel);

            } catch(Exception e) {

                       System.debug('**Exception: ' + e.getMessage());

            }

    The above code prints the value if it exists or throws an exception otherwise. 

     

    fetchCustomLabels() method takes 3 parameters.

    1. labelsArray : An array consisting of the labels.
    2. language: User Locale
    3. defaultValues: An array of default values (optional)

     

    Srikanth

0/9000

I am working on development where i need a LWC component to compare the two excel sheet and update any one sheet based on the user input like which column needs to be compared and update and which sheet needs to be updated. How can I do that ? any suggestions  

 

#Salesforce Developer  #LWC  #Lightning Web Components

0/9000

Hey Everyone, 

 

I have created a LWC Component which has a button. Onclick of that, it closes all the tabs in Salesforce(Used Platformworkspace API) 

Is there a way to eliminate the button and perform closing of tabs once a service agent accepts work/chats? 

 

#Salesforce Developer  #Service Cloud  #Customer Service  #LWC

0/9000

When there is only 1 row in my data table, the pick list is in the "background" and you need to scroll the table to get to the value. I feel like it's not the best user experience. Is there anyway to make the pick list show up in the front?How do you make data table picklist show up in front instead of making the table scrollable

 

Screenshot 2024-04-21 at 2.49.55 PM.png

Here's my HTML:

 

<template>

<lightning-card variant="Narrow" title="" icon-name="" class="cardSpinner">

<template lwc:if={areTransactionsAvailable}>

<article class="slds-card">

<div class="slds-card__header slds-grid">

<header class="slds-media slds-media_center slds-has-flexi-truncate">

<div class="slds-media__figure">

<span

class="slds-icon_container slds-icon-standard-account"

title="Transactions">

<lightning-icon

icon-name="standard:crypto_transaction_envelope_item"

></lightning-icon>

</span>

</div>

<div class="slds-media__body">

<h2 class="slds-card__header-title">

<span>Transaction</span>

</h2>

</div>

<div class="slds-no-flex">

<lightning-record-edit-form object-api-name="Expense_Report__c">

<lightning-input-field onchange={userChangeHandler} field-name="User__c"></lightning-input-field>

</lightning-record-edit-form>

</div>

</header>

</div>

</article>

<div if:true={showSpinner}>

<lightning-spinner alternative-text="Loading..." variant="brand">

</lightning-spinner>

</div>

<div class="slds-var-p-around_small">

<template if:true={data}>

<c-l-w-c-lookup-custom-datatable-type key-field="Id" data={data} columns={columns}

onlookupchanged={lookupChanged} onvalueselect={handleSelection} draft-values={draftValues}

oncellchange={handleCellChange} onsave={handleSave} oncancel={handleCancel}

onrowaction={handleRowAction} hide-checkbox-column>

</c-l-w-c-lookup-custom-datatable-type>

</template>

</div>

</template>

<template lwc:else>

<div>

<h1> No Transactions Available</h1>

</div>

</template>

</lightning-card>

</template>

 

#Lightning Experience  #Salesforce Developer  #LWC

2 Antworten
  1. 7. Jan., 05:34

    Hi,

    Achieving this using lightning data table will include some complexities, The simplest way to achive this is by using the HTML table.

    The code may look something similar to this

     

    HTML

    <template>

    <lightning-card title="Dynamic Picklist Value Selection">

    <table>

    <thead>

    <tr>

    <th>Picklist 1</th>

    <th>Picklist 2</th>

    <th>Picklist 3</th>

    </tr>

    </thead>

    <tbody>

    <tr>

    <td>

    <lightning-combobox variant="label:hidden" options={picklist1Options} onchange={handlePicklist1Change} style="width:150px; height:40px"></lightning-combobox>

    </td>

    <td>

    <lightning-combobox variant="label:hidden" options={picklist2Options} onchange={handlePicklist2Change} style="width:150px; height:40px"></lightning-combobox>

    </td>

    <td>

    <lightning-combobox variant="label:hidden" options={picklist3Options} onchange={handlePicklist3Change} style="width:150px; height:40px"></lightning-combobox>

    </td>

    </tr>

    </tbody>

    </table>

    </lightning-card>

    </template>

     

    JS

     

    import { LightningElement } from 'lwc';

    export default class DynamicPicklist extends LightningElement {

    firstPicklistOptions = [

    { label: 'A', value: 'A' },

    { label: 'B', value: 'B' },

    { label: 'C', value: 'C' },

    { label: 'D', value: 'D' }

    ];

    secondPicklistOptions = [];

    thirdPicklistOptions = [];

    selectedFirstOption;

    handleFirstPicklistChange(event) {

    this.selectedFirstOption = event.detail.value;

    this.secondPicklistOptions = [];

    for (let option of this.firstPicklistOptions) {

    if (option.value !== event.detail.value) {

    this.secondPicklistOptions.push(option);

    }

    }

    }

    handleSecondPicklistChange(event) {

    this.thirdPicklistOptions = [];

    for (let option of this.secondPicklistOptions) {

    if (option.value !== event.detail.value) {

    this.thirdPicklistOptions.push(option);

    }

    }

    }

    handleThirdPicklistChange(event) {

    // You can add logic for the third picklist change here if needed.

    }

    }

    Mark this as helpful if it helps solving your query.

0/9000