<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Salesforce Developer Forums - Lightning</title><link>https://developer.salesforce.com/forums</link><atom:link rel="self" href="https://dfc-org-production.my.site.com/forums/ForumsRSS?category=Lightning" type="application/rss+xml"></atom:link><description>This is the main RSS feed for the Salesforce Developer Forums</description><lastBuildDate>Sun, 03 May 2026 14:53:37 +0000</lastBuildDate><item><title>how to use merge fields to show the name of person receiving the mail. like Hi (user name here) . the mail is to be sent to multiple people at once and their name should show  on their email</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 10:24:36 +0000</pubDate><dc:creator>Chinmay Upadhyay</dc:creator><guid isPermaLink="false">9065d000000NrTJAA0</guid><description></description></item><item><title>How to upload a new version of file in LWC greater than 5 MB by breaking it down in chunks</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 06:23:49 +0000</pubDate><dc:creator>Neeraj Patil</dc:creator><guid isPermaLink="false">9065d000000NrSzAAK</guid><description><![CDATA[I tried to upload a new version of file in LWC of size 3 MB by breaking it down in chunks it got processed successfully and I&#39;m able to preview and download it.<br>Took reference from this post :- <a href="https://cafeforce.com/upload-file-in-chunks-multi-parts-remove-button-lwc-salesforce/" target="_blank">https://cafeforce.com/upload-file-in-chunks-multi-parts-remove-button-lwc-salesforce/</a><br>If I&#39;m trying to increase the max size and trying to upload a file greater than 5 MB then the file is getting processed but I&#39;m unable to preview it and also when I&#39;m downloading it, gets corrupted.<br><br>Need help on this one.<br>Thanks in advance!]]></description></item><item><title>Guest user profile issue</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 06:08:23 +0000</pubDate><dc:creator>Kavya K 38</dc:creator><guid isPermaLink="false">9065d000000NrSuAAK</guid><description><![CDATA[<p>I have a <br>Guest User Profile<br>Configure access for guest or unauthenticated users. Learn More<br>XYZ Wine Profile</p>

<p>I have a custom object . Whenever a record is created i have to send and email and flag the checkbox to true. But When i create the record i am getting email. But when some other person logs in and create a record using the community site emails are not going but checkbox is getting checked. Until i publish the site from their system emails are not going. But i cant sit and publish in everyone system right. What might be the issue?</p>

<p>Thanks in advance.</p>

<p>Looking for an solution ASAP</p>]]></description></item><item><title>how to prevent record update or editing based on a condition</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 21:33:04 +0000</pubDate><dc:creator>ahon</dc:creator><guid isPermaLink="false">9065d000000NrSGAA0</guid><description><![CDATA[If picklist field status = VOID, then user cannot update or edit record.<br><br>I keep running into a solution where a validation rule or flow prevents user from updating picklist to void. This is not the requirement. The requirement is once the status is <em>already changed </em>to VOID and the record is saved, then no further updates or edits can be made.]]></description></item><item><title>Update Discount Field</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 18:47:59 +0000</pubDate><dc:creator>Dilbagh Singh</dc:creator><guid isPermaLink="false">9065d000000NrSBAA0</guid><description><![CDATA[<br>Hi Team,<br> <br>Getting this error, as there is not option to add, &quot;Discount_Percentage__c&quot; in the Field Values.<br> <br>Please review and help here on priority.<br> <br>Link: https://bagga2-dev-ed.develop.lightning.force.com/builder_platform_interaction/flowBuilder.app?flowId=301Hn0000005JuVIAU]]></description></item><item><title>how to create multiple opportunities</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 15:24:39 +0000</pubDate><dc:creator>moh deena</dc:creator><guid isPermaLink="false">9065d000000NrS6AAK</guid><description><![CDATA[screen flow to create multiple opportunities .Get number of opportunities to be created from user. Each opportunity start date should be previous opportunity close date.]]></description></item><item><title>$A is not defined in LWC, working fine in one sandbox but not in other</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 01:44:08 +0000</pubDate><dc:creator>Pankaj Jangra 2</dc:creator><guid isPermaLink="false">9065d000000NrRIAA0</guid><description><![CDATA[I want to refresh the view of LWC using <strong>eval(&quot;$A.get(&#39;e.force:refreshView&#39;).fire();&quot;); </strong>but scripting error<strong> &quot;$A is not defined&quot;. </strong>It&#39;s interesting as the same code is working fine in one sandbox but not in another.  ]]></description></item><item><title>Issue of calculations of the product of a range of numbers according to "current" date</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 17:25:53 +0000</pubDate><dc:creator>Edwin Ng 5</dc:creator><guid isPermaLink="false">9065d000000NrQyAAK</guid><description><![CDATA[<p>Hello everyone, </p>

<p>I am having an issue creating a calculation formula for one of my fields, where, originally, the code should perform something like this:<br>where it basically finds the how many months (their start and end dates) would the tenant be paying within a quater.</p>

<p>e.g. Dates for Q1 is : January 1 – March 31<br>the tenant only have a contract of Jan 1 - Feb 31, 2 months, then we would just do 2 *total monthly cost </p>

<pre class="ckeditor_codeblock">
(if(Tenant__c.StartDate__c &gt;DATE(2023,10,1),
    (if(Tenant__c.End_Date__c&lt;DATE(2023,12,31),
        Tenant__c.End_Date__c,
        DATE(2023,12,31)))-Tenant__c.StartDate__c,
    (if(Tenant__c.End_Date__c&lt;DATE(2023,12,31),
        Tenant__c.End_Date__c,
        DATE(2023,12,31)))-DATE(2023,10,1))
)/((date(2023,12,31)-date(2023,10,1))/3)*Tenant__c.Total_Monthly_Cost__c</pre>

<p><br>But as you can see, its with hard coded dates and we would need to change it each quatre, therefore we are trying to make it &quot;automated&quot;, the code therefore becomes:</p>

<pre class="ckeditor_codeblock">
IF(
StartDate__c &gt;
DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)),
1
),
IF(
End_Date__c &lt;
DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)) + 3,
1
),
End_Date__c,
DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)) + 3,
1
)
) - StartDate__c,
IF(
End_Date__c &lt;
DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)) + 3,
1
),
End_Date__c,
DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)) + 3,
1
)
) - DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)),
1
)
) / ((DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)) + 3,
1
) - DATE(
YEAR(TODAY()),
IF(MOD(MONTH(TODAY())-1,3) = 0, 1,
IF(MOD(MONTH(TODAY())-1,3) = 1, 4, 7)),
1
)) / 3) * Tenant__c.Total_Monthly_Cost__c
</pre>

<p><br>which should basically perform the exact same function but including to check the current month to see from where to where/ how many month should be get as the number to times the total monthly cost.</p>

<p>It has been working perfectly fine the pervious 2 months until this month started, would there be anyone here who would know the anwser perhaps? Will be greatly appreciated with your helpful hand.</p>]]></description></item><item><title>how to prevent record deletion based on a condition</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 16:56:47 +0000</pubDate><dc:creator>ahon</dc:creator><guid isPermaLink="false">9065d000000NrQtAAK</guid><description><![CDATA[Is there a way to prevent record deletion based on, for example, a status field without using code?]]></description></item><item><title>Aging Report on Case History Report Type</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 11:52:02 +0000</pubDate><dc:creator>Nishit Mistryyy</dc:creator><guid isPermaLink="false">9065d000000NrQ0AAK</guid><description><![CDATA[<p>Hello Team,<br>I want to develop a Aging report on Case history report type<br>This is the requirement.<br><br>Consider a case which is initially present in Queue (Case Owner) A ... lets say this case was present in queue A for 2 days. Then it was transferred to Queue B and it stayed under that queue for 3 days.<br><br>So I want to create such a report where I can classify the cases based on number of days they were present under certain queue.<br>Classification is ;;;; 0-2, 3-8, 9-12 &amp; 13-15 days.<br><br>Please help me / guide me to create this report in salesforce.</p>]]></description></item><item><title>Once the administrator has activated the integration between B2C Commerce and Order Management, orders being placed by customers will be sent to Order Management if the order status is set to which two values? A. Created B.	Active C.Drafted D.	New E.	Open</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 10:47:44 +0000</pubDate><dc:creator>Kavitha H 5</dc:creator><guid isPermaLink="false">9065d000000NrPlAAK</guid><description><![CDATA[<span style="font-size: 11pt;"><span style=""><span style="font-family: Calibri,sans-serif;"><span style="font-size: 14.0pt;"><span style="">Once the administrator has activated the integration between B2C Commerce and Order Management, orders being placed by customers will be sent to Order Management if the order status is set to which two values?</span></span></span></span></span>
<ol><li><span style="font-size: 11pt;"><span style=""><span style="font-family: Calibri,sans-serif;"><span style="font-size: 14.0pt;"><span style="">Created</span></span></span></span></span></li><li><span style="font-size: 11pt;"><span style=""><span style="font-family: Calibri,sans-serif;"><span style="font-size: 14.0pt;"><span style="">Active</span></span></span></span></span></li><li><span style="font-size: 11pt;"><span style=""><span style="font-family: Calibri,sans-serif;"><span style="font-size: 14.0pt;"><span style="">Drafted</span></span></span></span></span></li><li><span style="font-size: 11pt;"><span style=""><span style="font-family: Calibri,sans-serif;"><span style="font-size: 14.0pt;"><span style="">New</span></span></span></span></span></li><li><span style="font-size: 11pt;"><span style=""><span style="font-family: Calibri,sans-serif;"><span style="font-size: 14.0pt;"><span style="">Open</span></span></span></span></span></li></ol>]]></description></item><item><title>Which design element in Flow allows the Admin, to reset the variables at the beginning of each loop iteration? (Clear,  Iterator, Reset, Assignment)</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 10:22:49 +0000</pubDate><dc:creator>Kavitha H 5</dc:creator><guid isPermaLink="false">9065d000000NrPWAA0</guid><description><![CDATA[Which design element in Flow allows the Admin, to reset the variables at the beginning of each loop iteration? (Clear,  Iterator, Reset, Assignment)<br><br>I want to know which is most preferable option to reset the variables at the beginning of each loop iteration.<br>Thanks in advance]]></description></item><item><title>How use BYOK in salesforce lightning?</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 07:02:58 +0000</pubDate><dc:creator>Ankit chauhan 77</dc:creator><guid isPermaLink="false">9065d000000NrPHAA0</guid><description><![CDATA[how to generate encypted tenant secret and hashed tenant secret]]></description></item><item><title>Pinned certificates</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Thu, 16 Nov 2023 00:46:27 +0000</pubDate><dc:creator>Elena Zhabina</dc:creator><guid isPermaLink="false">9065d000000NrP7AAK</guid><description><![CDATA[How do we know if we  are using pinned certificates? ]]></description></item><item><title>CMS Header and Footer Issue</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Wed, 15 Nov 2023 22:13:04 +0000</pubDate><dc:creator>Raghavandaar Manikandan</dc:creator><guid isPermaLink="false">9065d000000NrP2AAK</guid><description><![CDATA[Hey <br>I have been trying to connect an header and footer to my cms page. But each time I connect it I am getting an HTTP 404 not found error. But the file is present in my server and I am able to see it.<br>In the manage cms connection I have included a js script location and a root path.Its not able to access the location either.<br><br> ]]></description></item><item><title>List view is taking too much time to load in community</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Wed, 15 Nov 2023 10:05:37 +0000</pubDate><dc:creator>Tanish Goyal 4</dc:creator><guid isPermaLink="false">9065d000000NrO4AAK</guid><description><![CDATA[<p>I have user an Aura component which takes the list view name and load it on the community page . But its taking too much time as list view has a filter which loads the list data as per logged in user data like if the has an account related to that case or he has the desired permission which is a text field on User .</p>

<p>Any way to optimize it .</p>

<p>The formula returns a boolean which is a filter criteria for records in list view.</p>

<p>Formula:</p>

<p>OR(<br>    AND(<br>        OR(<br>            AND(<br>                OR(<br>                    $User.ContactCaseAccessLevel__c == &#39;Parent account cases only&#39;,<br>                    ISBLANK($User.ContactCaseAccessLevel__c)<br>                ),<br>                AccountId == $User.useraccountid__c<br>            ),<br>            AND(<br>                $User.ContactCaseAccessLevel__c == &#39;Parent and Active Child account cases&#39;,<br>                OR(<br>                    AND(<br>                        ISPICKVAL(Account.Account_Status__c, &#39;Active&#39;),<br>                        Account.ParentId = $User.useraccountid__c<br>                    ),<br>                    AccountId == $User.useraccountid__c<br>                )<br>            ),<br>            AND(<br>                $User.ContactCaseAccessLevel__c == &#39;Parent and All Child account cases&#39;,<br>                OR(<br>                    Account.ParentId == $User.useraccountid__c,<br>                    AccountId == $User.useraccountid__c    <br>                )<br>            )<br>        ),<br>        TEXT($User.UserType) != &#39;Standard&#39;<br>    ),<br>    TEXT($User.UserType) == &#39;Standard&#39;<br>)<br> </p>]]></description></item><item><title>validate input - screen flow</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 13 Nov 2023 18:18:48 +0000</pubDate><dc:creator>ahon</dc:creator><guid isPermaLink="false">9065d000000NrMNAA0</guid><description><![CDATA[Is there a way to have 2 conditions in a formula under<strong> validate input</strong> on a screen component? Currently, the following is, in fact, working and triggering an error message:<br><br><strong>{!Cancellation_Date} &lt;= TODAY()</strong><br><br>However, there are 2 conditions required and each time I attempt to add another condition, as seen below, the flow fails.<br><br><strong>AND(<br>    {!Cancellation_Date} &lt;= TODAY(), <br>    {!Cancellation_Date} &gt;= Sale_Date__c<br>)</strong>]]></description></item><item><title>How to package with article type?</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 13 Nov 2023 04:35:53 +0000</pubDate><dc:creator>Satapon Wongsiri</dc:creator><guid isPermaLink="false">9065d000000NrLeAAK</guid><description><![CDATA[I add article type to my package but target org enable knowledge lighting<br>and I don&#39;t need to delete article type in my package.<br><br>How to fix solution this?<br><br>thank you ]]></description></item><item><title>How to display Account name as a section name of an accordion and it's related contacts as it's sublist in that .</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Sat, 11 Nov 2023 14:47:09 +0000</pubDate><dc:creator>chetan sheshkar</dc:creator><guid isPermaLink="false">9065d000000NrLFAA0</guid><description><![CDATA[I want to fetch accounts and their related contacts and<strong> display the name of the account as a section name of an accordion</strong><em> </em>and its related contacts as a sublist in that, whenever the section gets open. With the help of LWC. Can anyone help me?]]></description></item><item><title>Error While open Lighting Page(one page Application)</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 10 Nov 2023 12:24:23 +0000</pubDate><dc:creator>Jenil Gandhi</dc:creator><guid isPermaLink="false">9065d000000NrKRAA0</guid><description><![CDATA[Aura Component is used inside the Lighting Page. Application sometimes working and sometime not ,even not any changes in the code.<br><br>Error : Looks like there&#39;s a problem.<br>Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.<br>Error ID: 6089919-70741 (-1696132541)<br> ]]></description></item></channel></rss>