• Deepali Kulshrestha
  • SMARTIE
  • 1346 Points
  • Member since 2016
  • Salesforce Developer
  • Cloud Analogy


  • Chatter
    Feed
  • 44
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 520
    Replies
I have received this error several times today while using Marketing Analytics:  "Session not found, missing session hash: pPrUmPpzVQi/tNwYmVTlLvuLVlq2vMrlBVwmKXRKGqU= This error usually occurs after a session expires or a user logs out."  Can anyone tell me why it is doing this?  SF Support was unable to help and directed me here.  Thanks. 
What are the changes that are manually to be done while migrating the data from sandbox to production org.
 
I have a picklist field valid values are A, B or C. I am using this field in lightning component. When the screen presented, the default value should be "None". If user is not chaning this picklist field to valid value - A, B or C, system throw an error message it's required field and valid values are A, B or C. How to acheive this functionality ?

Pls note that "None" is not a valid picklist value... but the field should be set to "None" when the screen comes up. 
  • April 10, 2019
  • Like
  • 0
Hello,

I want the user should see only leads created by him and if he is the owner.

What setting in my org i need to make to satisfy this usecase.

Profile:
Role: 
Sharing setting:
Permission sets:
Terriotary management: (If i want to implement territory whatsetting i need to make)

Also What is the difference between createdBy and owner ?

Thank you for sugestion
From android native app login page using SalesforceSDK how can i hide/remove menu option.
I want to restict users they should not change server url.
I'd like to describe this case in detail: First , we have created an custom sObject which OWD is Private Second, we have an approval process on this sObject and user created an record and submit for approval Third, his manager reassigned user's request to another person who has no right to view user's record because OWD is private and also has no role hierarchy with this user My question is : Can we add custom logic when manager reassign this approval to another person? So that we can apex sharing this record to person.

Appreciate for any help
Hello,

I want to give access to user for opportunities and lead of only which he is the owner. and only to certain record types..
to impleent this usecase, i would like to know what should be my profile, permission set, sharing level, accessibity to record types

thank you in advance
Hi, I'm working to complete the App Customization Specialist superbadge and have hit a roadblock when validating Step 2 (Create App Fields). The check was returning proper errors that I was going back to correct, then it started to present this message with varied error IDs (KZZQPHNY, CGKXMJXA, etc.):

User-added image

This is in fact a new org created for this superbadge, so I'm not sure what the issue is. Hoping someone can help as I've already sunk a decent amount of time into this and would like to proceed.

Thank you,
Kate
Hello,

I'm trying to determine the current app in Lightning mode. I tried both Javascript and Apex, but I was unable to get to retrieve the current appname.

In classic, I used the below which worked perfect!

document.getElementById("tsidLabel").innerText

This is not working in Lightning. We need page redirection based on the current application name. We tried in Apex too with "DescribeTabSetResult". But Apex retains the last application used or being used by the user and carries it over to Lightning. It ignores the user selection in Lightning and also the current displayed app in Lightning.

Any help in this regard would be greatly appreciated!!!

Thanks!!
 <lightning:dualListbox  label="Some field" name="some name" 
                       sourceLabel="Available"
                       selectedLabel="Chosen"
                       options="{!v.options}"
                       onchange="{!c.handleChange}"
                       size="20"
How to Display the date Field fronted error message in visualforce 

Date Field is select the future date throw error message
 
WHEN i RUN THIS PART OF THE CODE IT GIVES ME THE BELOW ERROR ALTHOUGH IT USED TO WORK BEFORE

 if(a[0].Product_Family__c == '360 Suite'){
            a[0].Status = 'Canceled';
        }
        




error:

System.ListException: List index out of bounds: 0
Hi Team,

Request you to please help, while trying to complete the challenge 6 for Process Automation Specialist, I am facing the following issues
1. Though I have created a new Trailhead Playground for this superbadge, however I am not able to view RainbowBot, CloudyBot, and Assembly System in the product name, where to check them
2. I have checked couple of post froom other users explaining of how to complete it, however it has snapshot of old flow version which is completely different than of what I see
3. While creating the Radio Button what needs to be taken for "choices"

Kindly find the snapshot attached
Challenge 6

Thanks for your support
Vinay Kumar Salve
Hello, 

We have a class and trigger in place which is now producing the error listed below. It is referencing an Apex Class and an Apex Trigger of where the issue is stemming from. 

Can someone help me figure out how I can correct this? 

Thank you!
 
Apex script unhandled trigger exception by user/organization: 005A0000005XYZb/00DA0000033432M

triggerUpdAssignedLead: execution of BeforeUpdate

caused by: System.Exception: Too many SOQL queries: 101

Class.LeadTrigger.<init>: line 47, column 1
Trigger.triggerLead: line 3, column 1

Line 47  of the Class.LeadTrigger can be found in this class code below:  
for(User u : [Select Id, UserType, Contact.AccountId, Contact.Account.Member__c, Exclude_from_Zip_Placement__c From User Where isActive = true]){
 
public without sharing class LeadTrigger {
    //private static boolean alreadyExecuted = false;
    Private Set<String> OpenLeadStatus = new Set<String>{'Awaiting Decision','Initiating Contact','New', 'Quoting', 'Re-Engaged', 'Job Take'};
    Private String QuotingStatus = 'Quoting';
    Private String QuotingCampaignNumber = '34099';
    Private static String MODELER_LEAD = 'Modeler Lead';
    Private static String HOW_LEAD = 'Show Lead';
    Private static String STATUE = 'Statue';
    public static String ClosedStatus = 'Closed By EF';
    public static String ProjectDelayedStatus = 'Project Ending';
    //public static boolean isTest {get; set;}
    //public static boolean isTestUpdateLead {get; set;}
    public static boolean isUpdateLeadStatus {get; set;}
    public static boolean isUpdateHistoryLog {get; set;}
    
    //New class variable creatd for optimization - 10/2016
    //Prevent SOQL Query governor limit exception
    private Map<String,Id> recTypes = new Map<String,Id>();
    private final string queueInsideSalesId;
    private final string dummyCampaignId = null;
    private Map<Id, User> activeUsers = new Map<Id, User>();
    private Set<Id> excludedZipAssignUsers = new Set<Id>();
    
    //Creating class constructor to initialize class objects - 11/2017
    //Prevent SOQL Query governor limit exception
    public LeadTrigger(){
        //Retrieving RecordType information
        for(Schema.RecordTypeInfo rt : Lead.SObjectType.getDescribe().getRecordTypeInfos()){
            String rtName = rt.getName();
            if((rtName == MODELER_LEAD)||(rtName == SHOW_LEAD)){ 
                recTypes.put(rtName, rt.getRecordTypeId());
            }
        }
        
        //Retrieving values for the Lead Assignment - AssignLeads() method
        //Retrieving the default owner (Inside Sales Queue)
        for(QueueSobject queue : [Select QueueId From QueueSobject Where SobjectType = 'Assigned_Lead__c' and Queue.Name = 'Inside Sales']){
            queueInsideSalesId = queue.QueueId;
        }
        
        //Retrieving Dummy Campaign ID for Assigning New Leads to a Campaign
        for(Campaign c : [Select Id, Campaign_Number__c From Campaign Where Name Like '%Dummy%' Limit 1]){
            dummyCampaignId = c.Id;
        }
        
        // Retrieving Active Users List for Lead Assignment
        for(User u : [Select Id, UserType, Contact.AccountId, Contact.Account.Member__c, Exclude_from_Zip_Placement__c From User Where isActive = true]){
            //Retrieving Users excluded by Zip Assignment
            if(u.Exclude_from_Zip_Placement__c ==  true){
                excludedZipPlaceUsers.add(u.Id);
            }else{
                activeUsers.put(u.Id, u);
            }
        }
    }


This is the ApexTrigger code named referenced in the apex error code: 
Trigger.triggerLead: line 3, column 1
 
trigger triggerLead on Lead (after insert, before insert, before update, after update) {

    LeadTrigger lt = new LeadTrigger();
    if (Trigger.isInsert)
        lt.LeadInsertion(Trigger.New, Trigger.isBefore, Trigger.isAfter);
    else if (Trigger.isBefore)
        lt.LeadUpdate(Trigger.New, Trigger.old, Trigger.isBefore);
    
    if (Trigger.isAfter) {
      lt.ReassignALOnClosedLeads(Trigger.New, Trigger.old, null);
      lt.AddToCampaign(Trigger.New, Trigger.oldMap);
      lt.ProcessQuotingLeads(Trigger.New, Trigger.old);
    } else 
      lt.PopulateAmbassador(Trigger.New, Trigger.old);   
      
    
    // 10/22/2015 Ambassador enhancement Tia Xuan 
    if (Trigger.isBefore && Trigger.isUpdate){
      lt.CreateLastVisitTask(Trigger.new);
      lt.CopyHistoryLog(Trigger.new, Trigger.oldMap);   
    }
}





 
I have 18 char id for the user. But I want to get the User name using the 18 char salesforce user id in Apex class. I tried to use the SOQL query to get the user name... it's exceeding the governer limits.. any other way getting the user name plase .. thanks. 
  • March 17, 2019
  • Like
  • 0
Hello, I'm trying to check part 7 of the trailhead 'Lightning Experience Reports & Dashboards Specialist' and I'm receiving the following error:
 
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: ZTUVMPBX

I attempted to download the XML for the work I had finished, create a new org and move over the reports/dashboards I had made, but I'm getting a security issue when I download the files and attempt to open the folder via MavensMate.

User-added image

I am the system admin on my pc. Is there anyway I can avoid manually recreating all of these configurations?


Thank you
While I was doing the Lightning Experience Reports & Dashboards Specialist Superbadge, I got this error on Challenge number 3,

"
Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: DMOJSQLN
"

I created a new playground for this badge and after I got this error, I tried to do this challenge in a new DE and got the same error.
Hi
If anyone can describe me the definition of " Namespace" in simple terms to understand. i tried to refer the apex developer guide but not able to understand properly, Thanks

User-added image
need help with this trialhead modile

Name the validation rule Contact must be in Account ZIP Code
A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be saved
The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)


I wrote this but it's incorrect
 MailingPostalCode !=  Account.ShippingPostalCode 
Hi All,
I want to get grand total of formula field.My report is meant to give the movement of work in progress value from month to month. For the same I have created two formula fields and every thing is working fine. Now what I want is to get grand total of one of the formula field. It is a matrix report. Please help me with this.

Thanks in advance.User-added image
 
Hi,
I created a process builder recently. As it was no longer in use I deleted it from my org. Now, while making any changes in the records I am still receiving the mail with error message regarding process builder failure. 
Error element myRule_1_A1 (FlowRecordUpdate).
The flow tried to update these records: 0034100000TxUl2AAF. This error occurred: ALL_OR_NONE_OPERATION_ROLLED_BACK: Record rolled back because not all records were valid and the request was using AllOrNone header.

It would be helpful of you if you can solve my problem.
Regards,
Deepali
Hi,
I am trying to create dashboard using Sales Analytics app. It seems that lot has been changed in Winter'18 release. While creating new app I am getting following ERROR: 33 User Dataflow Instructions executed, 41 failed.Please let me know how to resolve it. Thanks 
Hi All, 
I am new to Pardot. My requirement is to send email alert to user and an additional email whenever a Prospect is created in Pardot. I want to send the same email which is generated by default to assigned user only. I tried creating engagement studio and one-to-one email but was not able to find the solution. Please help me solve my issue
Hi All,
While setting up developer console for my Enterprise edition I don't know why it is not showing up in lightning inspite of the fact that lightning is enabled for the org.​ Can anyone help me with it?​
User-added image

Regards,
Deepali
Hi,

I have a question regarding Salesforce and AWS - S3 integration. Do they have any standard approach to integrate with Amazon AWS - S3 or not ? If any, Can you please specify and suggest to us, which method we could use ?

Thank you very much in advance,
First and foremost, i am a newbie with SF so pls bear with me and beg your pardon, if I dont use any adequate terms
Problem statement : Want to access files attached to Case objects using the SFDC rest api or by executing SOQL query. 

The following is what i have tried so far but no sucess.
I am using a SF dev account. A workflow has been set to read email with invoices and convert into case  with attachments. 
However, when I ran a SOQL query from the dev console,
Select Id from Attachment

I dont see any attachments info. Moreover, I dont see any object called Attachment in ObjectManager. I also see that the attachments are visible under Files  but dont see a way to use SOQL Query api to fetch those. 
So, can anybody provide any info as to how to fetch attchments referred in cases programatically in Java.

 
Hi All,
Need help on this

Getting Error: Could not resolve field 'Website' from <apex:outputField> value binding '{!con.Website}' in page Abc

1.Controller
public class Abc {
    
    public Dist__c con{get;set;}
    
    public Abc(){
        Id conId = apexpages.currentpage().getparameters().get('id');
        con = [SELECT id,name, (select website,Rating,industry,SLA__c from Accounts__r)from Dist__c WHERE Id=: conId];
    }
}


2.Vf Page
<apex:page controller="Abc">
    <apex:pageBlock> 
        <apex:pageBlockSection columns="1">
           
            <apex:outputField Value="{!con.Website}"/>
            <apex:outputField Value="{!con.Rating}"/>
            <apex:outputField Value="{!con.Industry}"/>
            <apex:outputField Value="{!con.SLA__c}"/>
            
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

 
Hello All,

Can anyone to fix this error please?  

Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: IVNFKUEO
I'm trying to complete the 2nd challenge in the App Customization Specialist superbadge and am getting the following error when checking the challenge.

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: TSRHXPFD

This is a new DE that was created for this Superbadge. The first challenge was successful.

Any ideas?  Thanks!
I have a problem figuring why i am receiving this notification when I am trying to complete the Secure Your Users' Identity challenge...Anyone can help?

User-added image
1. Need A custom button (APEX/VF) to be added on your Business Contact List View
2. Button Behavior - Call out the Account object so you can create a "New Account". 
how to print a report directly in click of a button in lightning ? without exporting as excle!?
Hi All,

I want to send  a record third party Application..whenever the records getting created in salesforce.

KIndly provide me some solution how to send it .
Write a program to display array of account object record - VFpage + controller code
Hi All,

Any one have any idea how to use "Cumulus". can you share me any one link for downloaded this i mean trail version.
"Cumulus” related to the deployment.

Thanks
KMK
  • April 19, 2019
  • Like
  • 0
I have an Apex class that I am using as a custom controller to send an email from a VF page. In that class I have constructed the email subject and body to have predefined text but the user still has the option to edit/add on to it on the VF page.
PROBLEM: I am trying to add a link to the email body in the constructor in the Apex class so that the person receving the email can directly go the record that the email is refering. 

This is an example of the body text: 
String body = 'Hi ' + Contact.FirstName + ', \n' + 'This is the account I am talking about + (hyperlink) acc.Name +  ' Lets discuss some more." 

I have tried constructing a string with an href: 
String link = '<a href="https://www.surveymonkey.com>' + acc.Name + '</a>';

But that just prints the whole string, along with the link, and doesn't make the acc.Name hyperlink. 
I also tried adding a commandLink on the VF page between the body tags but that doesn't work either. 
Any input is appreciated. 
 
i have this error
System.NullPointerException: Attempt to de-reference a null object
       
with this line in the code but it used to work before 
acc.RecordTypeId=Schema.SObjectType.Account.getRecordTypeInfosByName().get('Parent').getRecordTypeId();
 
Hi All,

Our requirement is zipping multiple CSV files together and send the ZIP file to external system.For which We are using ZIPPEX open source library(https://github.com/pdalcol/Zippex)

Approach:
We are writing a batch program which will create CSV file and save it to documents.another batch will fetch CSV files from documents and zip them together.But It is causing CPU Limit exceeded or heap size exceeded for large file (say 5 MB).
Can you please suggest a workaround to do this  via apex?
Hi,

I have a challenge that I want to share the related contacts to the other accounts contact. This is in a community scenario where a community user should be able to select any of the related contacts to the account.

As per now they are only able to select the contacts which has a direct relationship and not on related contacts.

Does anyone have a apex sharing for this scenario?

Object Reference for Salesforce and Lightning Platform

                            Product and Schedule Objects

In the Diagram when I look at the OpportunityLineItem.I see the following fields 

1)ID
2)OpportunityID
3)PriceBookEntryID

It does not talk about the Product ID,Why is it so?

However ,In the Salesforece org when I look at the fields of OpportunityLineitem I do see ProductID as lookup field.Can somebody explian why ProductID is missing from the  diagram.I am sure I am missing something here.



 
Hi Developers,
I came across a issue that apex cannot process xlxs, xls but didn't get clear explaination.
Can anyone explain why we cannot process xlsx,xls but can only process CSV and other format?
Thanks
I am trying to solve one of the lightning trail heads of creating Camping list.

Here is my component.

<aura:component>
 <!-- PAGE HEADER -->
<aura:attribute name="newItem" type="Camping_Item__c"
    default="{ 'sobjectType': 'Camping_Item__c','Name': '',
             'Quantity__c': 0,
             'Price__c': 0,
             'Packed__c': false }"/>
<aura:attribute name="items" type="Camping_Item__c[]"/>


     
    <!-- PAGE HEADER -->
    <lightning:layout class="slds-page-header slds-page-header--object-home">
        <lightning:layoutItem>
            <lightning:icon iconName="standard:scan_card" alternativeText="Camping List"/>
        </lightning:layoutItem>
        <lightning:layoutItem padding="horizontal-small">
            <div class="page-section page-header">
                <h1 class="slds-text-heading--label">Camping List</h1>
                <h2 class="slds-text-heading--medium">List</h2>
            </div>
        </lightning:layoutItem>
    </lightning:layout>
    <!-- / PAGE HEADER -->
    <!-- NEW CAMPINGLIST FORM -->
    <lightning:layout>
        <lightning:layoutItem padding="around-small" size="6">
        <!-- [[ CampingList form goes here ]] -->
        </lightning:layoutItem>
    </lightning:layout>
    <!-- / NEW CAMPINGLIST FORM -->
        <!-- CREATE NEW LIST -->
    <div aria-labelledby="newexpenseform">
        <!-- BOXED AREA -->
        <fieldset class="slds-box slds-theme--default slds-container--small">
        <legend id="newexpenseform" class="slds-text-heading--small 
          slds-p-vertical--medium">
          Add List
        </legend>
    
    
    
    <!-- CREATE NEW ITEM FORM -->
            
    <form class="slds-form--stacked">          
    <lightning:input aura:id="itemform" label="Name"
                             name="itemName"
                             value="{!v.newItem.Name}"
                             required="true"/> 
        
        
    <lightning:input type="number" aura:id="itemform" label="Quantity"
                             name="itemQuantity"
                             value="{!v.newItem.Quantity__c}"
                             required="true"/>
        
    <lightning:input type="number" aura:id="itemform" label="Price"
                             name="itemPrice"
                             min="0.1"
                             formatter="currency"
                             step="0.01"
                             value="{!v.newItem.Price__c}"
                             messageWhenRangeUnderflow="Enter an amount that's at least $0.10."/>
        
    <lightning:input type="checkbox" aura:id="itemform" label="Packed"  
                             name="itemPacked"
                             checked="{!v.newItem.Packed__c}"/>  
        
     <lightning:button label="Create Camping Item" 
                              class="slds-m-top--medium"
                              variant="brand"
                              onclick="{!c.clickCreate}"/>
            

</form>

    <!-- / CREATE NEW ITEM FORM -->

    <div class="slds-card slds-p-top--medium">

        <header class="slds-card__header">

            <h3 class="slds-text-heading--small">Items</h3>

        </header>

         

        <section class="slds-card__body">

            <div id="list" class="row">

                <aura:iteration items="{!v.items}" var="items">

                    <c:campingListItem item="{!item}"/>

                </aura:iteration>

            </div>

        </section>

    </div>

        </fieldset>
    </div>

</aura:component>


Component Controller:

({
    clickCreate: function(component, event, helper) {
        var validItem = component.find('itemform').reduce(function (validSoFar, inputCmp) {
            // Displays error messages for invalid fields
            inputCmp.showHelpMessageIfInvalid();
            return validSoFar && inputCmp.get('v.validity').valid;
        }, true);
        
    }
})

But the button "Click Create" has become static and is not working.Please help me so that it works!!!!


Please help.
Thanks in advance.
User-added image

Below is my screenshot of the report 
User-added image

This is how my report looks like 
User-added image
Can Anyone help in resolving this ? 
If I create a Big Object and then delete it is that counted towards the 100 big object limit?