Skip to main content

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

Hello Team,  

We are using Smart List in the Files Related List and encountering the size limit that you can't upload a file greater then 50 MB. 

 

The Salesforce Lightning attachment limit is set at 2GB (a hard-coded limit). This limit controls the maximum size of an attachment when uploaded using the standard related list, 'Notes & Attachments. 

 

Do we have any document or guide around this Limit? 

 

Upload File Size Limit

 

 

 

1 answer
0/9000

皆さん こんにちは 

今、VRAを15.23から16.9にアップデートを検討してますが、 

16.9にした時、既知の問題や不具合とか出ておりますでしょうか?

1 answer
0/9000
1 answer
0/9000

i created lightning input field and if I enter 100 then on keyup and keydown values are increases and decreases ,can i disable this OOTB feature   

 

#Salesforce Developer

0/9000

Hi All 

 

I have want to change the background color of my <div> elements based on a value in the bound data as I'm iterating the records from a task. 

 

Basically if the status = Open then background white else grey. I thought this would be using the lwc if / else but that seems to be only true or false and I can't work out how to do this using a getter. 

 

Any ideas would be greatly appreciated. One possibility I thought to use a view model populated at the controller level, and include boolean properties for this. I assume it's probably much simper but I can't find examples. 

 

            <template for:each={taskList} for:item="tsk">                <li class="slds-item" key={tsk.id}>                    <div class="slds-grid  slds-wrap">                        <div class="slds-col slds-size_2-of-3">                            <span style="font-weight:bold">{tsk.Who.Name}</span>                        </div>                        <div class="slds-col slds-size_1-of-3">                            <span style="font-weight:bold">{tsk.CreatedDate}</span>                        </div>                        <div class="slds-size_3-of-3 slds-p-top_small">                            {tsk.Description}                        </div>                    </div>                </li>            </template>

 

 

 

#Salesforce Developer

2 answers
  1. Today, 5:25 AM

    Hi , 

     

    You can try the following approach. It is just an example to show how you can change  background color of my <div> elements based on a value from the items you're iterating. 

     

    Suppose your component's name is 'test' . 

     

    /* test.css  */

    .white-background {

      background-color: white;

    }

     

    .grey-background {

      background-color: gray;

    }

     

     

    <!-- test.html -->

    <template>

      <lightning-card>

        <template for:each={taskList} for:item="tsk">

          <li class="slds-item" key={tsk.id}>

            <div

              class="slds-grid slds-wrap slds-p-horizontal_small slds-p-vertical_x-small"

            >

              <div class={tsk.customBackgroundClass}>

                <div class="slds-col slds-size_2-of-3">

                  <span class="slds-text-title_bold">{tsk.Who.Name}</span>

                </div>

                <div class="slds-col slds-size_1-of-3">

                  <lightning-formatted-date-time

                    value={tsk.CreatedDate}

                    year="numeric"

                    month="short"

                    day="2-digit"

                  ></lightning-formatted-date-time>

                </div>

                <div class="slds-size_3-of-3 slds-p-top_small">

                  {tsk.Description}

                </div>

              </div>

            </div>

          </li>

        </template>

      </lightning-card>

    </template>

     

     

    // test.js

    import { LightningElement } from "lwc";

     

    export default class Test extends LightningElement {

      testCreatedDate = new Date();

     

      taskList = [

        {

          id: 1,

          Who: {

            Name: "John"

          },

          status: "Open",

          CreatedDate: this.testCreatedDate,

          Description: "Test description.",

        },

        {

          id: 2,

          Who: {

            Name: "Jane"

          },

          status: "Close",

          CreatedDate: this.testCreatedDate,

          Description: "Test description."

        }

      ];

     

      connectedCallback() {

        this.taskList=this.taskList.map(item => {

            return {

                ...item,

                customBackgroundClass: item.status === 'Open' ? 'white-background':'grey-background'

            }

        })

      }

    }

0/9000

I'm trying to add some functionalities to this list but it was created from a managed package. Is there a way to get the selected contacts? I want to create an apex class that will get the ids.  

Ways to get checked Ids

 

 

 

#Salesforce Developer  #Apex Class

1 answer
  1. Divya Chauhan (Kcloud Technologies) Forum Ambassador
    Today, 5:14 AM

     Hii @Lily Kim  list view you're referencing is from a managed package, direct customization may be limited. However, there are still some ways you might be able to access selected record IDs

    depending on your use case and the package’s design.  

    1.

    Use Apex with Custom Button (if allowed)

    If the managed package allows you to add a custom button (List View Button) or Action, you can:

    • Create a List Button with Display Checkboxes enabled.
    • Use the {!GETRECORDIDS($ObjectType.Contact)} merge field to get selected IDs.

    2. Lightning Web Component Override (if applicable)

    If the list view is being rendered inside an Experience Site or Lightning App, and you have control over the page layout, you can create an LWC:

    • Add a checkbox column yourself.
    • Track selected items via onchange or onclick.
    • Pass those IDs to Apex for processing.
0/9000

Hello, we are a small business using a Shopify store to sell our products. However, Shopify does not offer robust CRM capabilities, so we are looking for a CRM that can help us manage customer relationships, discover new opportunities, provide customer service, and scale with our growth.

The Salesforce Starter Suite seems like a good option for us, as it provides both Sales and Service Clouds. It also includes Commerce Cloud, which—although we do not plan to use for a storefront—offers relevant objects such as Products, Customers, Collections, Prices, and Orders that align well with our Shopify store’s structure.

I understand that the Starter Suite has some limitations, but these are a bit unclear to me. Specifically, I would like to know:

• Can the Starter Suite be integrated with Shopify?

• Can it sync our customer accounts, products, prices, and orders bidirectionally?

• Is it possible to automatically create leads from abandoned checkout data?

I would appreciate any guidance or resources you can provide on these topics. Thank you!

#Integration #Commerce Cloud #Shopify Integration
2 answers
  1. Today, 5:11 AM

    Hi Divya,

    Thanks for your answer. I am not sure if this is you replying based on your experience or an AI answer. If it is you, Salesforce’s official page shows AppExchange access as off-limits for the Starter Suite, but I am not completely sure if that is correct. Please let me know what is the best tool or app to achieve the functionality I want.

0/9000

How to disable checkbox of a LWC datatable row based on cell value.  

Consider a requirement where all Case records are to be displayed in a LWC data tabe but if the status is closed then the Select checkbox should be disabled so that no further action can be done on that record. @LWC @LWCDatatable

2 answers
  1. Today, 5:10 AM

    Hi, 

     

    The default checkbox column functionality in lightning-datatable can not be disabled for a particular row. You can try custom data type, and also have to make it editable, and  then implement your business logic. 

     

    You can read more about custom data type on: 

    https://developer.salesforce.com/docs/platform/lwc/guide/data-table-custom-types.html

     

     

    resource for making a custom data type editable : 

    https://developer.salesforce.com/docs/platform/lwc/guide/data-table-custom-types-editable.html

0/9000

Has anyone ever had this issue in a scratch org before?? 

 

If I try to save a date field with a new value on the record, it DOES update the new value, and I have enabled field history tracking, so it looks like it knows what the original value was, and also saves the new value. But suddenly, after many days of testing a new flow that's working beautifully...date fields are accepting the newly saved value as if that had been the value all along. Also, in my most recent debug, neither the previous nor new date values were accurate (see screenshot below). 

 

 

Date fields suddenly not triggering flows in my scratch org. Debug shows incorrect values.

 

Before this last run, the debug showed the new date as the old date, so if I changed from April 4th to April 1st, it said it had always been April 1st and therefore no change was being made that would trigger the flow to run. The field is a date field and not a date/time field so the 00:00:00 doesn't bother me. But the dates have been correct so far, so I'm not sure what's going on. This is very new behavior. Anything I can do? 

 

#Flow  #Active Scratch Orgs

0/9000