<?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</title><link>https://developer.salesforce.com/forums</link><atom:link rel="self" href="https://dfc-org-production.my.site.com/forums/ForumsRSS?category=NET_Development" 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:31:36 +0000</lastBuildDate><item><title>Issue in batch class to generate a excel sheet</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 11:21:53 +0000</pubDate><dc:creator>imrohit</dc:creator><guid isPermaLink="false">9065d000000NrTOAA0</guid><description><![CDATA[<p>I have created a batch class to generate excel file of salesforce records, data to generate in excel is aroud 2-3 lakhs but every time batch class fails with CPU time limit exceed or Apex Heap size issue.</p>

<p>Please help if there is another way to achieve this.</p>]]></description></item><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>call apex from record trigger flow to delete the related contacts and opportunities  in salesforce</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 10:03:15 +0000</pubDate><dc:creator>anil reddy 211</dc:creator><guid isPermaLink="false">9065d000000NrTEAA0</guid><description></description></item><item><title>Restrict outbound emails in  E2CP based on certian criteria.</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 09:49:50 +0000</pubDate><dc:creator>Divya Sood</dc:creator><guid isPermaLink="false">9065d000000NrT9AAK</guid><description><![CDATA[Hi,<br><br>I want to send an outbound email from E2CP based on a certain criteria. Is there any way to configure this in E2CP?<br><br>Thank You]]></description></item><item><title>SSO - site.com site as an IDP</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 08:47:34 +0000</pubDate><dc:creator>Integration User 942</dc:creator><guid isPermaLink="false">9065d000000NrT4AAK</guid><description><![CDATA[Hello Salesforce Community,<br><br>I&#39;m currently facing a challenge with setting up a new Salesforce Site to act as an Identity Provider (IDP), and I&#39;m seeking some guidance from the experts here.<br><br>In our current setup, Salesforce itself is the IDP and Drupal is the Service Provider. However, with our new site (under my.site.com), we&#39;ve encountered a unique situation. This site seems to have a login process that is detached from our regular Salesforce login. As a result, the SSO into Drupal only works with the Salesforce.com login, not with the site.com login.<br><br>To give more context, our standard login URL is example--client.sandbox.lightning.force.com. However, for this new site (example--client.sandbox.my.site.com), the login mechanism appears different. If a user is logged into Salesforce site.com site, they cannot seamlessly access the new site, suggesting a distinct authentication mechanism at play.<br>I&#39;m looking to understand if there&#39;s a way to configure the my.site.com site to act as an IDP, similar to our main Salesforce setup. This would ideally allow for a seamless login experience between Drupal and the new site, maintaining our integration with Drupal.<br>Any insights, documentation references, or advice on best practices to achieve this would be greatly appreciated. If you have encountered a similar situation or can provide code samples or configuration tips, it would be immensely helpful.<br><br>I checked https://help.salesforce.com/s/articleView?id=sf.sso_sites_portals_about.htm&amp;type=5 and https://help.salesforce.com/s/articleView?id=sf.sso_sites.htm&amp;type=5 , but it seems it&#39;s about the scenario when site.com is the service provider.<br><br>Thank you in advance for your support and guidance.<br><br>Best Regards,<br>Aron]]></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>Chatter customisation</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 05:58:59 +0000</pubDate><dc:creator>Deepa P 18</dc:creator><guid isPermaLink="false">9065d000000NrSpAAK</guid><description><![CDATA[Hii , I need to customise the chatter in salesforce,like in chatter i want the users have dropdown questions instesd of typing in the chatter.is this posible in standared chatter to customis]]></description></item><item><title>I am blocked on Trailhead because I have started multiple Developer Edition orgs, do not have the login credentials for them, they say my city of birth is wrong, and because they are not linked I cannot enter a help ticket to get them  deactivated.</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Mon, 20 Nov 2023 00:16:04 +0000</pubDate><dc:creator>Corinna Takigawa</dc:creator><guid isPermaLink="false">9065d000000NrSkAAK</guid><description><![CDATA[I need a Developer Edition account for my next superbadges and some regular badges as well.<br>Yet, I cannot start anymore because my emails are linked to some.<br>I cannot open any of the DE&#39;s I&#39;ve had.<br>I can get all the way in to one or two of them to where there should be a &quot;Deactivate Org&quot; button but there is no button showing, so I think I&#39;m not the admin.<br>So I cannot deactivate the orgs to start new ones for the challenges/superbadges I want to do.<br>Resetting password does not work because it always says the city I was born in is wrong.<br>I cannot submit a help ticket because that must be linked to an org.  Yet I cannot link these because I don&#39;t have full access to them.<br>I am working very hard, have earned Double Star Ranger and one superbadge, but now feel entirely blocked from moving forward with goals.  Please advise.]]></description></item><item><title>Help Needed: Resolving APEX CPU Timeout in Lightning Flow with HTTP Callout - Unable to call ExternalService from callout in APEX class</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Sun, 19 Nov 2023 15:57:58 +0000</pubDate><dc:creator>Stefaan Somers 11</dc:creator><guid isPermaLink="false">9065d000000NrSaAAK</guid><description><![CDATA[Hi Salesforce Community,<br>I&#39;m working on a lightning flow that&#39;s scheduled to run and perform specific tasks. The flow&#39;s main objective is to retrieve records with a certain status and loop through these records to make an HTTP callout.<br><br>Here&#39;s a brief overview of the process:
<ul><li>The flow assigns values to a custom instance &#39;body&#39; of the type ExternalService apex class <strong>ExternalService__SendReminder_SendReminders_IN_body</strong> which is generated by Salesforce.</li><li>The primary task is to make an HTTP callout using these values.</li></ul>
<strong>Issue Encountered:</strong><br>I&#39;m consistently hitting an APEX CPU timeout limit. To address this, I&#39;ve considered creating a platform event where I can publish an event with the JSON value of the &#39;body&#39; variable. However, this isn&#39;t directly feasible in the flow, leading me to consider developing an invocable Apex class.<br><br>Here&#39;s the draft of the class I&#39;m contemplating:<br> 
<pre class="ckeditor_codeblock">
public class JsonUtility {

    public class RequestWrapper {
        @InvocableVariable
        public ExternalService.xxxx  myVariable;
    }

    @InvocableMethod
    public static List&lt;String&gt; serializeToJson(List&lt;RequestWrapper&gt; requests) {
        List&lt;String&gt; jsonStrings = new List&lt;String&gt;();

        for (RequestWrapper req : requests) {
            jsonStrings.add(JSON.serialize(req.myVariable));
        }

        return jsonStrings;
    }
}</pre>
<br><strong>Challenge:</strong><br>I&#39;m unable to locate the class ExternalService__SendReminder_SendReminders_IN_body in the IDE, which Salesforce generates. However, it is visible in the Dynamic class of Apex classes overview in Setup.<br><br>I&#39;d greatly appreciate any insights or advice on the following:
<ul><li>How to effectively resolve the APEX CPU timeout issue in this scenario?</li><li>Why the generated class is not visible in the IDE and how to access it for development purposes?</li></ul>
Any help or pointers in the right direction would be immensely valuable.<br>Thanks in advance for your assistance!]]></description></item><item><title>User Setup Page Redirects to a Non-existing URL (ERROR)</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Sat, 18 Nov 2023 13:07:45 +0000</pubDate><dc:creator>Artem Kalus 7</dc:creator><guid isPermaLink="false">9065d000000NrSVAA0</guid><description><![CDATA[When using Firefox, Opera, Brave browsers user setup page redirects to non-existing URL s second after the page is loaded.<br><br>The issue does not happen when Session Settings -&gt; Visualforce Clickjack Protection is disabled.<br><br>While Opera and Brave are not officially supported, I assume Firefox should be able to view User Setup page.<br><br> ]]></description></item><item><title>In the Create Account Page Layouts, even after completing the Customer Account Layout, it is showing this error Step not yet complete in apex super playground We couldn't find the Customer Account Layout.</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Sat, 18 Nov 2023 09:11:55 +0000</pubDate><dc:creator>Punya K</dc:creator><guid isPermaLink="false">9065d000000NrSQAA0</guid><description></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>Case process architecture help needed</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 13:17:25 +0000</pubDate><dc:creator>Rebecca Martell</dc:creator><guid isPermaLink="false">9065d000000NrRwAAK</guid><description><![CDATA[<p>Hi!</p>

<p>I would highly appreciate input on the following architectual use case: I&#39;m currently setting up service cloud and one requirement is to be able to initiate cases from different objects such as lead, opp, contact, account where fields should be prepopulated and shown on the case record (for example account owner and account name).<br><br>They also have different types of cases, such as bug, question, improvement suggestions. These have pretty much the same process around them but it would definetely help to be able to have different support processes and picklist values for them.<br><br>What approach would you take when it comes to the record type choice? Would you configurate record types as case typ (bug, question, improvement suggestions etc) or per object they open the case from (account, lead, opp). My idea with the later was to present and prepopulate different fields depending on what object they inititate the case from, but maybe there is antoher way than using record types for that(?).<br><br>Thanks in advance! Kr Rebecca</p>]]></description></item><item><title>Getting an error in case trigger while inserting the case(after insert case trigger is giving error)</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 12:18:56 +0000</pubDate><dc:creator>Nishit Mistryyy</dc:creator><guid isPermaLink="false">9065d000000NrRrAAK</guid><description><![CDATA[CaseTrigger.txt<br>trigger CaseTrigger on Case (before update, After Insert, before insert,After update){<br>    //before Triggers<br>    if(Trigger.isBefore){<br>        //before insert<br>        if(Trigger.isInsert){<br>            CaseTriggerHandler.validateEmail(Trigger.New);<br>            CaseTriggerHandler.registerOrNot(Trigger.New);<br>            if(CaseTriggerHelper.isCaseInserted == false){<br>                CaseTriggerHandler.populateTATOnCase(Trigger.New);<br>                CaseTriggerHandler.populateEntitlementOnCase(Trigger.New);<br>                CaseTriggerHandler.getCaseCategories(Trigger.New,true);<br>                CaseTriggerHandler.validateCaseCreationWithinTAT(Trigger.New);<br>                CaseTriggerHandler.validateTATBreachedCaseCreation(Trigger.New);<br>                CaseTriggerHandler.populateEmailOnCase(Trigger.New);<br>                CaseTriggerHandler.complaintsproritycheck(Trigger.New);<br>            }<br>            <br>            //CTSTMetadataHandler.setPriorityOnCaseInsert(trigger.new);<br>        }<br>        <br>        //before update<br>        if(Trigger.isUpdate){<br>            if(CaseTriggerHelper.isCaseUpdated == false){<br>                CaseTriggerHandler.updateSTatusAndFlags(Trigger.New, Trigger.oldMap);<br>                CaseTriggerHandler.populateAccountandServicebranchOnCase(Trigger.New);<br>                CaseTriggerHandler.updateEscalationMails(Trigger.New);<br>                CaseTriggerHandler.autoCloseMilestone(Trigger.New);<br>                CaseTriggerHandler.populateEntitlementOnCase(Trigger.New);        <br>                CaseTriggerHandler.getCaseCategories(Trigger.New,false); <br>                //CaseTriggerHandler.updateQueueAssignedDate(Trigger.new, false);<br>                CaseTriggerHandler.PopulateClosedBy(Trigger.New);<br>                CaseTriggerHandler.complaintsproritycheck(Trigger.New);<br>                if(CaseTriggerHelper.assignmentDetails == false){<br>                    CaseTriggerHandler.updateQueueAssignedDate(Trigger.New);<br>                }<br>            }<br>        }<br>    }<br>    //After triggers<br>    else if(Trigger.isAfter){<br>        //after insert<br>        if(Trigger.isInsert){<br><br>            if(CaseTriggerHelper.isCaseInserted == false){<br>                /**DON&#39;t REMOVE OR COMMENT THIS METHOD Added BY Pratap*/<br>                CaseTriggerHandler.createCaseCustomDetail(Trigger.new);<br>                 /**DON&#39;t REMOVE OR COMMENT THIS METHOD Added BY Pratap*/<br><br>                CaseTriggerHandler.postNonKYCUpdateAPI(Trigger.New);         <br>                CaseTriggerHandler.postContactUpdateAPI(Trigger.new, null);<br>                CaseTriggerHandler.populateLoanOnCase(Trigger.new);<br>                //Added by PJ date 12 Oct 23<br>                //CaseTriggerHandler.sendCaseCreationSMS(Trigger.New);<br>                //addded by PJ<br>                 CaseSMShandler.sendCaseCreationSMS(Trigger.new);<br>                 //Ended by PJ<br><br><br>                //CaseTriggerHandler.sendCaseCreationSMS(Trigger.New,&#39;New&#39;);<br>                CaseTriggerHandler.complaintsproritycheck(Trigger.New);<br>                CaseTriggerHandler.updateTopManagementFlag(Trigger.newMap.keySet());<br>                //CaseTriggerHandler.caseOwnerAfterInsertHelper(Trigger.New);<br>                if(Boolean.valueOf(System.label.Run_csOutbondFlag)){<br>                    CaseTriggerHandler.csOutbondFlag(Trigger.New);<br>                }<br>            }<br>            CaseTriggerHandler.callCaseAssignment(Trigger.newMap);<br>        }<br>        <br>        //after update<br>        if(Trigger.isUpdate){<br>            if(CaseTriggerHelper.isCaseUpdated == false){<br>                CaseTriggerHandler.postNonKYCUpdateAPI(Trigger.New);    <br>                CaseTriggerHandler.populateLoanOnEmailMessageOfCase(Trigger.new, trigger.oldMap);<br>                CaseTriggerHandler.sendCaseCreationUpdSMS(Trigger.new,trigger.oldMap);<br>                //CaseTriggerHandler.sendCaseClosureSMS(Trigger.new,trigger.oldMap);<br>                //addded by PJ<br>                CaseSMShandler.sendCaseClosureSMS(Trigger.new,trigger.oldMap);<br>                //CaseSMShandler.sendCaseCreationSMSOnUpdate(Trigger.new,trigger.oldMap);<br>                 //Ended by PJ<br>                CaseTriggerHandler.sendDocOnEmail(Trigger.new);<br>                CaseTriggerHandler.caseARforPendingWithCustomer(Trigger.new, trigger.oldmap);<br>                CaseTriggerHandler.complaintsproritycheck(Trigger.New);<br>            }<br>            //CaseTriggerHandler.validateExcludedCase(Trigger.new, Trigger.oldMap);<br>            CaseTriggerHandler.vehicleUpdateAPIcall(Trigger.new, Trigger.oldMap);<br>            CaseTriggerHandler.postContactUpdateAPI(Trigger.new, Trigger.oldMap);<br>        }<br>    }<br>}<br><br>CaseTriggerHandler.apxc<br>public class CaseTriggerHandler {<br>public static Boolean isCaseInserted = false;<br>//Helper method to check priority of Complaints CTST.<br>    public static void complaintsproritycheck(List&lt;Case&gt; newCaseList){<br>        Id caseTypeGenericTemplate = Schema.SObjectType.Case.getRecordTypeInfosByName().get(&#39;Generic Template&#39;).getRecordTypeId();<br>        Map&lt;Case, CaseCategoryMetadata__c&gt; caseCategoriesMap = new Map&lt;Case, CaseCategoryMetadata__c&gt;();<br>        Set&lt;String&gt; caseCategorySet = new Set&lt;String&gt;();<br>        Set&lt;String&gt; categorySet = new Set&lt;String&gt;();<br>        Set&lt;String&gt; subcategorySet = new Set&lt;String&gt;();<br>        Set&lt;String&gt; subsubcategorySet = new Set&lt;String&gt;();<br>        Set&lt;String&gt; productTypeSet = new Set&lt;String&gt;();<br>        DateTime startDate = DateTime.newInstance(2023, 11, 16,12,0,0);<br>        <br>        String dynamicCMDQuery = &#39;&#39;;<br>        <br>        for(Case caseRec : newCaseList){<br>            if(caseRec.Case_Category__c==&#39;Complaint&#39; &amp;&amp; caseRec.RecordTypeId==caseTypeGenericTemplate){<br>                if(!String.isBlank(caseRec.Product_Type__c)){<br>                    productTypeSet.add(caseRec.Product_Type__c);<br>                }<br>                if(!String.isBlank(caseRec.Case_Category__c)){<br>                    caseCategorySet.add(caseRec.Case_Category__c);<br>                }<br>                if(!String.isBlank(caseRec.Category__c)){<br>                    categorySet.add(caseRec.Category__c);<br>                }<br>                if(!String.isBlank(caseRec.Sub_Category__c)){<br>                    subcategorySet.add(caseRec.Sub_Category__c);<br>                }<br>                if(!String.isBlank(caseRec.Sub_Sub_Category__c)){<br>                    subsubcategorySet.add(caseRec.Sub_Sub_Category__c);<br>                }<br>            } else{<br>                return;<br>            }<br><br>            <br>        }<br>        <br>        //Set&lt;Case_Category_Metadata__mdt&gt; caseCategoryCMDSet = new Set&lt;Case_Category_Metadata__mdt&gt;();<br>        Set&lt;CaseCategoryMetadata__c&gt; caseCategoryCMDSet = new Set&lt;CaseCategoryMetadata__c&gt;();<br>        if((productTypeSet.size()&gt;0) &amp;&amp;<br>           (caseCategorySet.size()&gt;0) &amp;&amp;<br>           (categorySet.size()&gt;0) &amp;&amp;<br>           (subcategorySet.size()&gt;0)<br>          ){<br>              dynamicCMDQuery += &#39;select Product_Type__c, Case_Category__c, Category__c, Sub_Category__c, Sub_Sub_Category__c, Escalation_2_Business_Days__c, Priority__c from CaseCategoryMetadata__c &#39;;<br>              dynamicCMDQuery += &#39;where Product_Type__c IN: productTypeSet AND Case_Category__c IN: caseCategorySet AND Category__c IN: categorySet AND Sub_Category__c IN: subcategorySet AND isActive__c = true AND Priority__c=\&#39;High\&#39;&#39;;<br>              if(subsubcategorySet.size()&gt;0){<br>                  dynamicCMDQuery += &#39;AND Sub_Sub_Category__c IN: subsubcategorySet&#39;;<br>              }<br>          }<br>        <br>        //List&lt;Case_Category_Metadata__mdt&gt; caseCategoryCMD = new List&lt;Case_Category_Metadata__mdt&gt;();<br>        List&lt;CaseCategoryMetadata__c&gt; caseCategoryCMD = new List&lt;CaseCategoryMetadata__c&gt;();<br>        if(!String.isBlank(dynamicCMDQuery)){<br>            caseCategoryCMD = Database.query(dynamicCMDQuery);   <br>        }<br>        System.debug(&#39;caseCategoryCMD: &#39;+caseCategoryCMD); <br>        if(!Test.isRunningTest()){<br>        for(Case caseRec : newCaseList){<br>            if(caseCategoryCMD.size() == 0){<br>                if(caseRec.CreatedDate &gt; startDate){<br>                    caseRec.addError(&#39;Selected Category is not a part of the complaint case type&#39;);<br>                }<br>            }}    <br>        }<br><br>    }<br>public static void updateTopManagementFlag(Set&lt;Id&gt; newCasesids){<br>        List&lt;case&gt; caseListupdate = [select id, owner.name from case where id IN :newCasesids ];<br>        for(Case caseRec : caseListupdate){<br>            if(caseRec.Owner.name == &#39;Top Management Escalation bucket&#39;){<br>                caseRec.Top_Management_Flag__c = &#39;Yes&#39;;<br>            }else{<br>                caseRec.Top_Management_Flag__c = &#39;No&#39;;<br>            }<br>        }<br>        update caseListupdate;<br>    }<br><br>Getting an below error<br>CaseTrigger: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on row 0 with id 5001s000008uj8GAAQ; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Selected Category is not a part of the complaint case type: [] Class.CaseTriggerHandler.updateTopManagementFlag: line(update caseListupdate;)<br>Trigger.CaseTrigger: line 61, column 1]]></description></item><item><title>I am able to retrive the name of an account but i am unable to get the account id</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 12:05:56 +0000</pubDate><dc:creator>Kavya K 38</dc:creator><guid isPermaLink="false">9065d000000NrRmAAK</guid><description><![CDATA[<p>SELECT Id, Contact.Id,Account.Id, Account.Name FROM User WHERE Username =:userName AND Account.Name=&#39;XYZ&#39; LIMIT 1<br><br>Before logging in to the community site Why so?</p>

<p>I am able to update the account name in LMN object but i am not able to update the Account Id in LMN object which is lookup field.</p>]]></description></item><item><title>Access Account and Contact Details Before logging in</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 12:02:56 +0000</pubDate><dc:creator>Kavya K 38</dc:creator><guid isPermaLink="false">9065d000000NrRhAAK</guid><description><![CDATA[Will I be able to access the Account and contact details related to the particular Community site before logging in the site?]]></description></item><item><title>You dont have access to apex class</title><link>https://developer.salesforce.com</link><comments>https://developer.salesforce.com</comments><pubDate>Fri, 17 Nov 2023 10:55:12 +0000</pubDate><dc:creator>Kavya K 38</dc:creator><guid isPermaLink="false">9065d000000NrRcAAK</guid><description><![CDATA[I have a custom button in the salesforce login page. When i click on the button it will capture the name and user name and pass it to apex to save in one custom object. But when try to login using the URL from the All sites. I am getting an error &quot;You do not have access to the Apex class named &#39;DFVPasswordReset_Apex&quot; But i have given the Apex class permission for all the profiles. Is it because i am trying to access the apex class before logging in?<br>Please help as soon as possible.<br>Thanks in advance]]></description></item></channel></rss>