+ Start a Discussion
Geeta ReddyGeeta Reddy 
Iam Unable to login to my developer login after taking professional edition my org ID is Org:  (00D2w00000O0COe 
.I am unable login to  throught forget password .
Please help me 
Best Answer chosen by Geeta Reddy
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Geetha,

If the issue is log in flow you should be getting the email. By removing the login flow you will not  be  able to use that log in flow again and you may need to create a new.

Can you provide the consent that we can delete the log in flow and it anything breaks because of this it is your resposibility.

Can you just confirm the org Id and also domain name if possible just to confirm

Thanks,
 
rima khanrima khan 
Hi!
I registered with trailhead.
I’m an SDR looking to expand my Salesforce skill set. Let’s pretend I have none. Particularly looking for the basics around reporting, and any other trails that may be beneficial to spend some time with.
My goal is to have a competent understanding of SF to build my sales as I enter a closing role and the relevant tools in SF that will help me gain an advantage.
Thanks in advance!
Best Answer chosen by rima khan
manasa udupimanasa udupi
Hi Rima,

Below are few trailhead links, hope it helps:)

https://trailhead.salesforce.com/en/content/learn/modules/sales_admin_sales_reports_for_lex
https://trailhead.salesforce.com/en/content/learn/modules/sales-activity-analysis
Martin FreireMartin Freire 
I've been working on this superbadge, near the end I got to this part:

Ada also tells you that the SolarBot Status Averages report needs some tweaks. First, the Support team wants to see trends over time, so they want the report to show data by week instead of by day. Second, they want a graph for this report called Weekly Panel Temperature and kWh that shows average panel temperature and average kilowatt hours as lines over time. Third, they want to see this graph on each SolarBot record page. Create the page and call it SolarBot Status Page With Chart. Include only information about the individual SolarBot in the chart.


What kind of page should I go for? I created a Lightning Record Page, a page layout, and it is not detecting any kind of page
Thanks in advance
Best Answer chosen by Martin Freire
Bedotroyee SarkarBedotroyee Sarkar
Please create a new Lightning Record Page named "SolarBot Status Page With Chart" and activate the page. Then try to add Report chart from standard elements (which you will find on the left panel of the page).

Please make sure on right side you are entering the label name for the chart, selecting the report "SolarBot Status Averages" and adding filter SolarBotID so that chart displays the record details only based on context.
If you do not select anything, it will set to the default one (The pie chart one).

Just adding report chart to the page layout not working for this challenge. 
vino2vijayvino2vijay 

Hello Salesforce Experts,

 

Anyone please let me know how to write valition rule for URL ?

Else someone please provide regular expression string for URL ?

 

Thanks,

Best Answer chosen by Admin (Salesforce Developers) 
Satish_SFDCSatish_SFDC

A small syntax change. 

The following rule worked for me.

 

if(REGEX(URLfield__c,"^((http|https)://)??(www[.])??([a-zA-Z0-9]|-)+?([.][a-zA-Z0-9(-|/|=|?)??]+?)+?$"),false,true)

 

Hope this helps.

 

Regards,
Satish Kumar

Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

Shuhbam SinhaShuhbam Sinha 

Hello Everyone ,

I need to remove  catch error from my LWC . So basically I have a record edit from and upon submitting i have some validation rules to be checked . So as we know for custom validations Salesforce adds this line  First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION,'  before any validation but my requirement is to show only the validation rule's message not the whole line .
Is there any way to show only validation message . Please help.
Thanks in advance.

Best Answer chosen by Shuhbam Sinha
Shuhbam SinhaShuhbam Sinha

Hello,

I got the exact answer. If anyone wants to refer : -

 

f (error.body.message.includes('FIELD_CUSTOM_VALIDATION_EXCEPTION')) {
                            console.log('FIELD_CUSTOM_VALIDATION_EXCEPTION');
                            this.errorMessage = error.body.message.substring(82+('FIELD_CUSTOM_VALIDATION_EXCEPTION').length);
                            console.log('FIELD_CUSTOM_VALIDATION_EXCEPTIONss',this.errorMessage);
                            this.dispatchEvent(
                                new ShowToastEvent({
                                    title: 'Error updating record',
                                    message: this.errorMessage,
                                    variant: 'error',
                                }),
                            );
                        }
Gopal Madireddy 1Gopal Madireddy 1 
Create and assign the solution providing Shinje access to the Language Preference field.  for this what I have to do given to Shinje Tashi user
Best Answer chosen by Gopal Madireddy 1
VinayVinay (Salesforce Developers) 
Please note that Questions about how to pass Trailhead challenges are not on topic, because these challenges are intended to be independent demonstrations of your abilities.

Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.

Please close the thread by selected as Best Answer so that we can keep our community clean

Thanks,
MedhanieHabteMedhanieHabte 
I seem to be stuck on this trailhead module or write negative tests unit, while I have 93 percent code coverage, I can't seem to get the code coverage to hit 100 percent at the "returnValue" piece doesn't seem to hit.
My code is as follows.

Calculator Class
 
public class Calculator {
 public class CalculatorException extends Exception{}

  public static Integer addition(Integer a, Integer b){
   return a + b;
    }

   public static Integer subtraction(Integer a, Integer b){
    return a - b;
    }

 public static Integer multiply(Integer a, Integer b){
  if(b==0 || a==0){
  throw new CalculatorException('It doesn\'t make sense to multiply by 
   zero');
  }
  return a * b;
  }

 public static Decimal divide(Integer numerator, Integer denominator){
  if(denominator == 0){
  throw new CalculatorException('you still can\'t divide by zero');
   }
 Decimal returnValue = numerator / denominator;
  if(returnValue < 0){
    throw new CalculatorException('Division returned a negative value.' + 
 returnValue);
 }
   return returnValue;
  }


 }

And my test class as follows
 
@isTest
   public class Calculator_Tests {

@isTest
 public static void addition() {
    Calculator.addition(1, 0);
   }
@isTest
  public static void subtraction() {
    Calculator.subtraction(1, 0);
   }

@isTest
 public static void divide_throws_exception_for_division_by_zero() {
 Boolean caught = false;
 try {
    Calculator.divide(1, 0);
  } catch (Calculator.CalculatorException e) {
    System.assertEquals('you still can\'t divide by zero', e.getMessage(), 
  'caught the right exception');
    caught = true;
   }
   System.assert(caught, 'threw expected exception');
   }

  @isTest
 public static void divide_throws_exception_for_division_by_two() {
 Boolean caught = true;
 try {
    Calculator.divide(1, 2);
 } catch (Calculator.CalculatorException e) {
    System.assertEquals('you still can\'t divide by zero', e.getMessage(), 
  'caught the right exception');
    caught = true;
   }
   System.assert(caught, 'threw expected exception');
 }


@isTest
public static void multiply_by_one() {
  Boolean caught = false;
  try {
    Calculator.multiply(1, 0);
    } catch (Calculator.CalculatorException e) {
    System.assertEquals('It doesn\'t make sense to multiply by zero', 
    e.getMessage(), 'caught the right exception');
     caught = true;
    }
    System.assert(caught, 'threw expected exception');
  }

@isTest
 public static void multiply_by_two() {
  Boolean caught = true;
  try {
     Calculator.multiply(1, 2);
   } catch (Calculator.CalculatorException e) {
    System.assertEquals('It doesn\'t make sense to multiply by zero', 
  e.getMessage(), 'caught the right exception');
    caught = true;
   }
   System.assert(caught, 'threw expected exception');
}   
}

 
Best Answer chosen by MedhanieHabte
Abdul KhatriAbdul Khatri
How come a division returned a negative value with positive numbers? I don't think that is the right Scenario. 

Infact you can change that not accepting the negative value like this 
 
public static Decimal divide(Integer numerator, Integer denominator){
        if(denominator == 0){
            throw new CalculatorException('you still can\'t divide by zero');
        }
        if(numerator < 0 || denominator < 0)
        	throw new CalculatorException('negative value(s) not allowed.');
        
        Decimal returnValue = numerator / denominator;

        return returnValue;
    }

and add another test method
@isTest
    public static void divide_throws_exception_for_negative_number() {
        Boolean caught = true;
        try {
            Calculator.divide(-1, 2);
        } catch (Calculator.CalculatorException e) {
            System.assertEquals('negative value(s) not allowed.',e.getMessage());
            caught = true;
        }
        System.assert(caught, 'threw expected exception');
    }

I hope this will help.​
Rohit BhamdareRohit Bhamdare 
Hiii Everyone,

When we create a user we can create with different licenses. There is salesforce license and there is also a 'Identity' license. Now the thing is that I just want a user that can access my visualforce pages, custom objects and want to perform DML operations with all permissions. Can I create it with identity user license?

I just want to save my salesforce license users, so that i can use them in future...

Thanks in advance... :)
Best Answer chosen by Rohit Bhamdare
SandhyaSandhya (Salesforce Developers) 
Hi Rohit Bhamdare,

Please refer below salesforce help document to know detailed information on salesforce license type.

https://help.salesforce.com/articleView?id=users_license_types_available.htm&type=0&language=en_US
 
For Identity Implementation guide refer below link.

https://resources.docs.salesforce.com/204/latest/en-us/sfdc/pdf/salesforce_identity_implementation_guide.pdf
 
Hope this helps you!

Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya

 
Shahab KhanShahab Khan 
Hi,

I have a number field (Number, 0) but when i put valuee 10000 in it it will diplay it as 10,000 i want to display it without comma.
I have selected number field because i need to select Max number from it and add 1 in Max number for new entry.
Can any body help me how i can do it.

Thanks,
Faraz
Best Answer chosen by Shahab Khan
Grazitti TeamGrazitti Team
Hi Shahab,

Create a new custom field, where type is "formula" and the formula return type is "text".

In the formula, use the TEXT() function, and pass the existing number field value into this formula. For example, if your number field is MyNumber_c then your formula would be: TEXT( MyNumber_c )

Your users will enter values into the existing number field, but you can use the formula field (which doesn't display thousands separators)


And don't forget to mark this answer as best, if answer this helps you :-)


--
Regards,
Grazitti Team
Web: www.grazitti.com
Durgesh VyasDurgesh Vyas 
I want to disable personalize nav bar options for users.
Best Answer chosen by Durgesh Vyas
Dinesh GopalakrishnanDinesh Gopalakrishnan
Hi Durgesh,

Please check the Below Options or check the Doc from the Below Link
  • If you don’t want your users to personalize the navigation bar for a specific app, disable personalization. From Setup in Lightning Experience, go to the App Manager. For the desired app, select App Options. Select Disable end user personalization of nav items in this app.
  • If you don’t want your users to personalize the navigation bar for any app, disable personalization. From Setup, enter User Interface in the Quick Find box, then select User Interface. Select Disable Navigation Bar Personalization in Lightning Experience. Salesforce recommends disabling navigation personalization by app instead of for the entire org.
https://help.salesforce.com/articleView?id=user_userdisplay_tabs_lex_considerations.htm&type=5

Kindly Mark this as a Best Answer if you Find this Useful!

Thanks
DineshKumar Gopalakrishnan