+ Start a Discussion
Ajeeth Kumar SAjeeth Kumar S 
sudo sfdx plugins:install @salesforce/lwc-dev-server
Polling for new version(s) to become available on npm... done
    HTTPError: Response code 403 (Forbidden)
    Code: ERR_NON_2XX_3XX_RESPONSE
Best Answer chosen by Ajeeth Kumar S
Ajeeth Kumar SAjeeth Kumar S


Now i have installed LWC local development server in my mac system. I feel issue with salesforce server.

HI Vikalp Nagar, Can you please try now. 

Rich FiekowskyRich Fiekowsky 
I am trying to learn more about development. My Developer Edition org does not have the "Deploy" item in the Setup menus. Maybe this is normal, since there is not any Production system involved. But how can I practice preparing Change Sets and moving them to other orgs, such as my Trailhead playgrounds?  
Best Answer chosen by Rich Fiekowsky
Saravana Muthu 8Saravana Muthu 8
Hi,

Sorry you can't learn this in free dev edition. The Developer Edition doesn't have the concept of Sandboxes so there is no "Changesets" too 

You'll have to practice that one your Sandboxes associated with the Production instance(or the Paid SF Instance that your Company is using).

Please mark it as best answer if it helps.

Thanks,
Saravana
CRM_PeteCRM_Pete 
When I try to run sfdx the same way I have for about 4 years, I get this error message:

'"C:\Users\Desja\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file.

>>> Why is it trying to run sfdx from that folder? It's not in that folder!

In this folder: C:\Users\Desja\AppData\Local\sfdx\client I have two sub-folders, "bin" and "7.209.6-8ba3197", the 2nd of which appears to have been created on 9/5/23 (just 2 days ago). The "bin" folder contains 2 files: sf.cmd and sfdx.cmd, while the "7.209.6-8ba3197" folder contains a "bin" folder, which contains a single file named "node.exe"

CLI has become a very valuable tool for me as I support 19 nearly identical orgs for the chapters of a national non-profit that works for the homeless. I have no idea why it has stopped working so mysteriously.

I have been through several existing messages on here that all seem to point to the PATH environment variable. The correct folder is present in my path, but the error message indicates it's trying to run sfdx from that other folder named 7.209.6-8ba3197\bin -- why?

Thank you for any clues to help resolve this.
Best Answer chosen by CRM_Pete
Chase Parker 4Chase Parker 4
Known issue. Upgrade or turn off autoupdate. 
https://github.com/forcedotcom/cli/issues/2447
 
Stephen Long 6Stephen Long 6 
Hi All,

This is more informative than a question - incase anyone else comes looking for this answer as this is a Premium Support only request.

If you are running a GET RECORDS in a flow and it is failing to find records - you may find that your Object has too many records and you are using a non-selective (fields are not indexed) query.

Please see articles and error I received in debug below:

https://help.salesforce.com/articleView?id=000325257&language=en_US&type=1&mode=1

https://help.salesforce.com/articleView?id=000323572&type=1&mode=1

Please include this ErrorId if you contact support: 1328908832-31586 (-548403183)
Best Answer chosen by Stephen Long 6
AbhishekAbhishek (Salesforce Developers) 
Stephen, I am from the salesforce premium only.

You are right.

But I would like to add one more point if you are seeing this "System.QueryException: Non-selective query against large object type (more than 200000 rows)" In debug logs.

You have to make your query more selective or Reach salesforce to perform Indexing.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
gupta shikhagupta shikha 
Getting error while deploying Duplicate role to Production
 | ERROR | [DuplicateRule PersonAccount.TRS_Person_Account_Duplicate_Rule] SortOrder must be in sequential order from 1.
 
We are trying to deploy Duplicate rules from one org to Production but getting error
Deployment tool - Copado
Best Answer chosen by gupta shikha
VinayVinay (Salesforce Developers) 
Hi Gupta,

You can use the Reorder link to set the order in which the specified, Duplicate Rule is processed and by default any newly created Duplicate Rule is always ordered last and hence processed last.

Please mark as Best Answer if above information was helpful.

Thanks,
Hilarye SchoytHilarye Schoyt 

I have a doozy of a user story, and I'm stuck.  I will try to explain as best as I can. 

Objects in Question:
Account (Standard)  
Project (Custom) - Master Detail relation to Account.  
Project Services (Custom) -  Junction object between Service & Project.  
Service (Custom) - Just a list of services we offer that need to be linked to multiple other records.   
Current Services (Custom) - Junction object between service & account.

Each 'Account' can have multiple 'Projects' (Master Detail).  Each 'Project' can have multiple 'Services' (Junction Object).  Therefore each 'Account' can have multiple 'Services' (Junction Object).  

What I desperately need: When I relate a 'Service' record to a 'Project', through junction object 'Project Services', I need an identical relation to be created between 'Account' and 'Service', on junction object 'Current Services'.  Is this doable though a Flow or a Trigger?

EX:  'Account A' has just become an active client. User goes to create the new record 'Project 1' associated with 'Account A' on the custom 'Project' object.  While creating 'Project 1', user relates 'Service 1' & 'Service 2' to that project through junction object 'Project Services'.  At the same time a new record needs to be created on the junction object 'Current Services' relating that service to 'Account A'. Each 'Service' only need be added to 'Account A' once.

Think of this as a rollup of related 'Services' to the related 'Account' listed on a 'Project' record. End result being 'Account A' will always have a list of current services in a related list.

Help please?  I've been thinking about this for 3 straight days, and my brain hurts.  Feel free to ask clarifying questions if I make absolutely zero sense.

I've never written a trigger, so if that's my path, any advice or help would be much appreciated. 

Best Answer chosen by Hilarye Schoyt
Shivani Kolhe 11Shivani Kolhe 11

To automatically connect an 'Account' and a 'Service' through the 'Current Services' junction object when a 'Service' is linked to a 'Project' via the 'Project Services' junction object, you can use an Apex trigger. This trigger activates when a new record is added to the 'Project Services' junction object and handles the creation of records in the 'Current Services' junction object.
Within this trigger, you'll need to go through the newly added 'Project Services' records and make corresponding entries in the 'Current Services' junction object. This trigger should be built to handle bulk operations, ensuring it functions correctly even when multiple 'Project Services' records are added simultaneously. The trigger may have the following body:
trigger ProjectServicesTrigger on Project_Services__c (after insert) {
    List<Current_Services__c> currentServicesToInsert = new List<Current_Services__c>();
    
    for (Project_Services__c ps : Trigger.new) {
        // Query for the associated Service record
        Service__c service = [SELECT Id FROM Service__c WHERE Id = :ps.Service__c LIMIT 1];
        
        // Create a Current Services record linking the Account and Service
        Current_Services__c currentService = new Current_Services__c(
            Account__c = ps.Project__r.Account__c,
            Service__c = service.Id
        );
        
        currentServicesToInsert.add(currentService);
    }
    
    // Insert the new Current Services records
    if (!currentServicesToInsert.isEmpty()) {
        insert currentServicesToInsert;
    }
}

Be sure to thoroughly test the trigger to confirm it correctly creates and connects the 'Current Services' records to the 'Account' and 'Service' as intended

 

Let me know if this works for you!

Shyamala VaradharajanShyamala Varadharajan 
Hi,

I know that email limits for  trigger, apex class or API is set for 5000 per day. What is the Email limits for Flows per day.Can anyone help me this.
Best Answer chosen by Shyamala Varadharajan
SwethaSwetha (Salesforce Developers) 
HI Shyamala,
Per https://help.salesforce.com/s/articleView?id=sf.allocations_email_general.htm&type=5, 

"Each licensed organization can send a single email to up to 5,000 external email addresses per day. For orgs created before Spring '19, this daily limit applies only to emails sent via Apex and Salesforce APIs (excluding REST APIs). In orgs created after Spring '19, this daily limit also applies to email alerts, simple email actions, Send Email actions in flows, and REST APIs."

Reference: https://salesforce.stackexchange.com/questions/389404/salesforce-emails-limits

Related: https://help.salesforce.com/s/articleView?id=sf.workflow_limits_email.htm&type=5

If this information helps, please mark the answer as best. Thank you
Jaden MarquezJaden Marquez 
Hi Salesforce Friends,

I am new to Salesforce. I created my org not to long ago. I'm looking for guidence and Advice on a project I'm working on. I've created a survey with a bunch of questions, and I've also created a custom object with fields related to those questions. I want to create a flow that will trigger as soon as a new survey response is created. The flow will then create a new record in my custom object based on the survey responses. One record type will be selected based on a response.

I'm not sure how to tackle this in the flow canvas. Even though I started the org not to long ago, I've been learning Salesforce for a few weeks. I'm still a beginner :). I'm hoping someone can provide me with some guidance on how to complete this flow. Which Elements should go first, etc.

Thanks, Everyone!

- Jaden M
 
Best Answer chosen by Jaden Marquez
VaibhavSethVaibhavSeth

Hi Jaden,

Here's a step-by-step guide to achieve this:
Step 1: Create a Flow
Log in to your Salesforce account.
Go to Setup by clicking on the gear icon in the top-right corner.
In the Quick Find box, type "Flow" and select "Flows."
Click the "New Flow" button to create a new flow.

Step 2: Set Flow Trigger
Drag and drop the "Record-Triggered Flow" element onto the canvas.
Select the object where you're capturing survey responses (e.g., "Survey Response" object) as the object for the trigger.
Define the criteria for when the flow should be triggered. This could be when a new record is created.

Step 3: Decision Element for Record Type
Add a "Decision" element to the flow.
Set up the decision criteria based on the survey response data. For example, you can check a specific survey response field to determine the appropriate record type.

Step 4: Get Record Type Id
Use "Get Records" Element to get the Id of appropriate record type for your custom object.

Step 5: Create New Record
Drag and drop a "Create Records" element into the flow.
Set the object to your custom object (where you want to create the new record).
Configure the field values based on the survey response data and use the Id of Record Type from Step 4 for the RecordTypeId field.

Step 6: Save and Activate Flow
After configuring the flow, save it with an appropriate name and description.
Activate the flow to make it ready for execution.

If this solution helps, please mark the answer as best.
Thank you

Michael ShoreMichael Shore 
Hi trying to convert date to a text string (for a pardot email) and am looking to change the date of 2023-01-01 to "January 1, 2023".  Is there a way to do this as a formula as one could do in Excel (Text(Date_name),"MMMM D, YYYY")
Best Answer chosen by Michael Shore
Sukanya BanekarSukanya Banekar
Hi Michael,

You can extract day, month and year from the date and use CASE function to determine the month. 

You can try formula below:
CASE( TEXT( MONTH(dateFieldAPI) ), 
'1','January',
'2','February',
'3','March',
'4','April',
'5','May',
'6','June',
'7','July',
'8','August',
'9','September',
'10','October',
'11','November',
'12','December','') & " "
& TEXT( DAY(dateFieldAPI) ) & " " &  TEXT( YEAR(dateFieldAPI) )

Let me know if this works.

Thanks,
Sukanya Banekar
ahonahon 
When a user creates a new related record on object, the object's recordId passes to new related record. However, the new related record also must be associated with another/primary object record's id.

For example, a new related record is created (object C) on object B and does in fact associate with object B -- must associate with object A as well.

I tried an auto-launched flow, assigning variables but my flow is not working.
Best Answer chosen by ahon
ahonahon
Solution: create a record-triggered flow on record that needs to auto-populate another object's recordId, then update records. Use the object record that triggered the flow to set field values.