• mark jones 123
  • -4 Points
  • Member since 2020

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 25

Hi Community,

So, After I updated the VSCode recently, this error is getting thrown most of the time either when i try to retrieve 'the source from org' for a single apex class or when i try to 'Retrieve Source in Manifest from Org' from package.xml file.

I think it might get fixed after reinstallation. But that can cost me some time, setting up org, installing extensions again and all.

How can fix this issue ? Help ! 
If you know the solution, please share it.

trigger TaxCalaculation on OrderItem (before insert,before update) {
    product2 a;
    //List<orderItem> a=[select product2.family from orderItem where product2id IN :Trigger.newMap.keySet()];
    //List<OrderItem> li=new List<OrderItem>();
    for(OrderItem o:Trigger.new)
         a=[select family from product2 where id= :o.Product2Id];
        //o=[select Product2.family from orderItem where product2id= :Trigger.new.product2id];
        //o=[select product2.family from orderItem where product2Id IN :Trigger.new];
        else if(a.family=='FootWear')
        else if(a.family=='Clothing')


Hi, how to send automatic emails from batch apex, when approval record is pending, for approving the record.
Hi  - Anyone please shed some lights below?

When data is created from the middleware using bulk API, below error message is displayed.

400: Bad Request: InvalidJob : Field name provided
 External_Id__c does not match an External ID for Client_Financial__c

External_Id__c - External Id Field in the Client_Financial__c custom object. 

Note : Mappings working fine. Column headers are properly mapped.
Hi All, 

I have created a custom object which I am trying to report on. I am able to create the custom report without any issue. However, The fields in which I have a formula are not showing up in my drag and drop side bar. Can anyone help on why this is happening? 

I am using lightning-spinner and normally we get the DOT as spinner. 

But my requirement is, i need to have my TEXT to loaded instead of the DOTs untill my data loaded on the page. Your help would be really appreciated.

Thanks & Regards



Salesforce standard error messages is displaying differently for required fields.

Standard objects fields marked as required is display the error message in the below format.
User-added image
Custom objects fields marked as required is dispalying the below error message.
User-added image

Please let me know why there is discrepancy and how to make it unique across the sandbox.

Thanks & Regards,
Harsha BR
I am working on implementing single sign on using Salesforce Auth. Providers. I am integrating it with IdentityServer 4 using Open ID connect method.
I have need to pass additional "launch" request parameter to the single sign on initialization url which will then delegate it to the authorization endpoint.
I would like to give example of what i am trying to do: Single Sign-On Initialization URL: https://login.salesforce.com/services/auth/sso/00D6g0/SalesforceSsoPoc
So if i send user to https://login.salesforce.com/services/auth/sso/00D6g0/SalesforceSsoPoc?launch=dyanmic_token then it would redirect user to the authorize endpoint with the launch=dynamic_token parameter. It should look like this: https://myauthprovider.abc.com/authorize?launch=dynamic_token......
Per help guide on salesforce.com i have ability to pass additional query parameter when i define authorize endpoint while configuring the auth. provider. this is great for adding static parameters but i want to pass launch parameter to the authorize endpoint which contains the onetime launch token generated dynamically.
Documentation that i have referred so far but no luck: https://help.salesforce.com/articleView?err=1&id=sso_provider_openid_connect.htm&type=5 https://help.salesforce.com/articleView?id=sso_provider_addl_params.htm&type=5#sso_provider_addl_params_community

I'm trying to complete the trailhead "" and encountering a challenge.  If anyone has any feedback for me on this, I'd appreciate very much.  

Added VerifyDate.apxc as I did with TemperatureConverter.apxc.  Added TestVerifyDate.apxc (even with VerifyDateTest.apxc) as I did with TemperatureConverterTest.apxc.  I verified that those classes exist per screenshot1 below:
User-added image

I'm supposed to be able to go to Test, select New Run, then with Select Tests pop-up, I'm supposed to see the TestVerifyDate (and/or VerifyDateTest) classes to select and run; however, I'm not seeing those test classes.  Why?  Even with "[All Namespaces]", they still don't show.  

Workaround for now is to run the test suite per instructions earlier in the trailhead.  

Reference screenshot2 below:
User-added image

Thanks in advance for your help.

What is the difference between Permission set licenses and Feature licenses?

Here is an explanation in Salesforce Documentation which I do not fully understand:
Permission Set Licenses
A permission set is a convenient way to assign users specific settings and permissions to use various tools and functions. Permission set licenses incrementally entitle users to access features that are not included in their user licenses. Users can be assigned any number of permission set licenses.

Feature Licenses Overview

A feature license entitles a user to access an additional feature that is not included with his or her user license, such as Marketing or Work.com. Users can be assigned any number of feature licenses.

I guess I should start by asking what is the difference between a "Permission" and a "Feature". I know what a Permission is (Example, a Profile is a set of Permissions). But, in contrast, what is a Feature in Salesforce?

Thank you.
  • September 04, 2018
  • Like
  • 1
If anyone gets this error message: "The dashboard configuration that allows users to see only their own data is incorrect"...
error message

The solution is to check The Dashboard Viewer radio button in the dashboard settings--in the "View Dashboard As" section.


I am trying to deploy a Change Set from my Sandbox to PROD Org however when I select to "Upload" the Change Set I receive the following error:
"This organization isn't authorized to upload change sets to other organizations. For authorization, contact the deployment connections administrators on the organizations where you want to upload changes.".

My profile is set up as a System Administrator for my Org.

Is anyone able to assist?

I am getting this error when trying to do the "Lightning Experience Rollout Specialist"

The AccountTab Visualforce page does not include one or both of the following: the apex:slds tag in the page, or the slds-table value in the table.

My code is as follows:
<apex:page standardStylesheets="false" standardController="Account" recordSetVar="accounts" tabStyle="account" applyHtmlTag="false" applyBodyTag="false" showHeader="false">
       <apex:slds />
    <div class="slds-scope">     
        <table class="slds-table">
    			<tr class="slds-text-title_caps">
      				<th scope="col">
        				<div class="slds-truncate" title="{!$ObjectType.Account.Fields.Name.Label}">{!$ObjectType.Account.Fields.Name.Label}</div>
    			<apex:repeat value="{!accounts}" var="a">
                  <td data-label="Account Name">
                    <div class="slds-truncate" ><apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink></div>
     <div class="slds-scope">
        <apex:pageBlock >
            <apex:pageBlockTable value="{!accounts}" var="a" styleClass="slds">
                <apex:column headerValue="{!$ObjectType.Account.Fields.Name.Label}">
                    <apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink>

I can't find Dev Hub in my org's Setup search.
Please help me resolve this challenge:


The Challenge is as follows:

Generate an Apex class using WSDL2Apex and write a test class.
Generate an Apex class using WSDL2Apex for a SOAP web service, write unit tests that achieve 100% code coverage for the class using a mock response, and run your Apex tests.

Use WSDL2Apex to generate a class called 'ParkService' in public scope using this WSDL file. After you click the 'Parse WSDL' button don't forget to change the name of the Apex Class Name from 'parksServices' to 'ParkService'.
Create a class called 'ParkLocator' that has a 'country' method that uses the 'ParkService' class and returns an array of available park names for a particular country passed to the web service. Possible country names that can be passed to the web service include Germany, India, Japan and United States.
Create a test class named ParkLocatorTest that uses a mock class called ParkServiceMock to mock the callout response.
The unit tests must cover all lines of code included in the ParkLocator class, resulting in 100% code coverage.
Run your test class at least once (via 'Run All' tests the Developer Console) before attempting to verify this challenge.

The error I receive when checking the challencge is:

Challenge Not yet complete... here's what's wrong:
Executing the 'country' method on 'ParkLocator' failed. Make sure the method exists with the name 'country', is public and static, accepts a String and returns an array of Strings from the web service.

Here is the code I am using:
public class ParkLocator {
    public static String[] country(String ctry) {
        ParkService.ParksImplPort prk = 
            new ParkService.ParksImplPort();
        return prk.byCountry(ctry);

global class ParkServiceMock implements WebServiceMock {
   global void doInvoke(
           Object stub,
           Object request,
           Map<String, Object> response,
           String endpoint,
           String soapAction,
           String requestName,
           String responseNS,
           String responseName,
           String responseType) {
        // start - specify the response you want to send
        ParkService.byCountryResponse response_x = 
            new ParkService.byCountryResponse();
        List<String> myStrings = new List<String> {'Park1','Park2','Park3'};
        response_x.return_x = myStrings;
        // end
        response.put('response_x', response_x); 

private class ParkLocatorTest  {
    @isTest static void testCallout() {              
        // This causes a fake response to be generated
        Test.setMock(WebServiceMock.class, new ParkServiceMock());
        // Call the method that invokes a callout
        List<String> result = new List<String>();
        List<String> expectedvalue = new List<String>{'Park1','Park2','Park3'};
        result = ParkLocator.country('India');
        // Verify that a fake result is returned
        System.assertEquals(expectedvalue, result); 

Any help which can be provided is greatly appreciated.  If you could advise me at raadams173@gmail.com if you reply with a solution, I can log in to check it.



I have created an inbound email handler that processes XML email body. The email will be triggered by a third party application directly to Salesforce's email handler id. These emails are not being processed by Salesforce. However, Salesforce processes the email sent from my email account.

Also, I have my email domain and the third party app's email domain names in the Accept Email From setting.

I have set the failure scenario configuration as shown below:
Email Services Failure Configuration

I need help in finding out if the emails are actually being received by Salesforce.

Hi all,

I'm stuck in the Apex Integration Services - Apex SOAP Callouts challenge with the following message "The Apex class 'ParkLocator' does not appear to be calling the SOAP endpoint.".

Could you please advise ?
Hi all,

While exploring the salesforce features i came across supoort process
  1. Support processes are used to add or remove the status values of cases
  2. After a support process has been created its assigned to a record type
Now my confusion  is ,why  are we  using support processes to add/remove the picklist values? as It can also be achieved when creating record types.
Record types allow us to customize the picklist values then why wud we use this solution process feature?

Okay folks, I know this is a n00b question but I can't remember if or how to initialize a string with a set of arguments.


What I want to do is something like this



List<String> alphabet = { 'a' , 'b' , 'c' ...  };


How can I do this?


Howdy everyone,


Well, I'm a bit stumped. I'm trying to test a web-to-lead form where I preset the record type:



<input type="hidden" id="recordType" name="recordType" value="012Q00000008ULW">


I have the "keep the existing record type" option set under Lead Settings and it is still not working. 


Everything else is populating correctly on the lead record in SFDC.