• Smita Hodiggeri
  • NEWBIE
  • 19 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 1
    Questions
  • 22
    Replies
Hey Everyone,
 Moving from administration to coding here.Your understanding is much apprecaited. :)
So the scenario I am trying to handle with apex is When portential "lead " record will attempeted to create by external party(Zapier) which is triggered by Facebook messenger I am cheacking for "Psid" of the sender which is unique to every user. So for ex: If Anna sends series of messages to Flower'em asking for floral arrangments I would like to capture the whole message as a description in a lead record and later process the info in that description box.
So now, I am all good in preventing the duplicate lead creation when same person sends series of messages.Howver I am not able to print or extract the exitsing description the lead created and append the subsequent messages to the lead's description field. I am wondering how do I go about this.
My code so far.
trigger CheckPsidBeforeCreatingNewLead on Lead (before insert) {

    Lead exLead = null;
    String NewMessageDescription;
    
    for(Lead l : Trigger.new){
        for(Lead l1 : [select ATMTApp_Test1__SenderPsid__c from Lead]){
            if(l.ATMTApp_Test1__SenderPsid__c == l1.ATMTApp_Test1__SenderPsid__c){
                l.addError('This is a duplicate Lead');
                exLead =l1;
                NewMessageDescription = l.Description;
            }
                                    
        }
        if(exLead!=null){
        System.debug(exLead);
    String ExistingLeadId = (String) exLead.get('id');
        System.debug(ExistingLeadId);
        
      String ExistingDescription =[Select Description from Lead where id = '+ ExistingLeadId +'].Description;
        System.debug(ExistingDescription);
        
        
    }
         
    //exLead.set(Description) = exLead.get(Description) +'---------New Message Recevied' +  NewMessageDescription ;
        
}
}
Any help is much appreciated.
Many thanks,
Smita V.H
Hey Everyone,
 Moving from administration to coding here.Your understanding is much apprecaited. :)
So the scenario I am trying to handle with apex is When portential "lead " record will attempeted to create by external party(Zapier) which is triggered by Facebook messenger I am cheacking for "Psid" of the sender which is unique to every user. So for ex: If Anna sends series of messages to Flower'em asking for floral arrangments I would like to capture the whole message as a description in a lead record and later process the info in that description box.
So now, I am all good in preventing the duplicate lead creation when same person sends series of messages.Howver I am not able to print or extract the exitsing description the lead created and append the subsequent messages to the lead's description field. I am wondering how do I go about this.
My code so far.
trigger CheckPsidBeforeCreatingNewLead on Lead (before insert) {

    Lead exLead = null;
    String NewMessageDescription;
    
    for(Lead l : Trigger.new){
        for(Lead l1 : [select ATMTApp_Test1__SenderPsid__c from Lead]){
            if(l.ATMTApp_Test1__SenderPsid__c == l1.ATMTApp_Test1__SenderPsid__c){
                l.addError('This is a duplicate Lead');
                exLead =l1;
                NewMessageDescription = l.Description;
            }
                                    
        }
        if(exLead!=null){
        System.debug(exLead);
    String ExistingLeadId = (String) exLead.get('id');
        System.debug(ExistingLeadId);
        
      String ExistingDescription =[Select Description from Lead where id = '+ ExistingLeadId +'].Description;
        System.debug(ExistingDescription);
        
        
    }
         
    //exLead.set(Description) = exLead.get(Description) +'---------New Message Recevied' +  NewMessageDescription ;
        
}
}
Any help is much appreciated.
Many thanks,
Smita V.H
For life of me I can't figure out what this exercise is asking to do.  I was able to modify other reports but this particualr R&D report, Temperature to kWh Research, I'm not able to do.  Error is keep saying, "We can’t find the additional analysis by model being performed on the 'Temperature to kWh Research' report. Remember that you can organize data horizontally and vertically at the same time."

User-added image


 
i need guidance regarding DataLoader any one please suggest to complete Challenge 8
 
I'm having trouble validating challenge 2, with regard to Shinje Tashi's user settings.
ERROR: 
Challenge Not yet complete... here's what's wrong: 
Shinje Tashi does not have the user settings he needs.

The instructions say: "This sales data quality specialist supports the entire company and needs to be assigned a role that can see and access all account, contact, and opportunity records for the entire company. Use the Standard User profile."

First off, it seems odd not to handle this through a separate profile, but I'm trying to follow the directions. So...

I created Shinje as an active user, User License: Salesforce, Profile: Standard User. There isn't a role specified for him, and the instructions suggest providing access to all acct, contact and oppty records through a role assignment, so I created a Sales Data Admin role, reporting to the CEO. That role should provide RECORD access. Additionally, for OBJECT access, I created a permission set granting full access (CRED, View All, Modify All) to Acct, Contact, and Oppty objects and assigned it to Shinje. I created a separate permission set granting access to the Language preference field on Acct, named that permission set "Bilingual Pilot" as instructed, and assigned it to Shinje.

I'm not sure what I'm missing...

 
Hi,

i am getting below error while completing "Lightning Experience Rollout Specialist Superbadge Step #8"
Challenge Not yet complete... here's what's wrong:
Knowledge must be enabled for the org.
.User-added image


i have alredy enabled knowledge settings..

User-added image

Thank you.
Hello,

I am currently running in to an issue on Step 6 of the Lightning Experience Rollout Specialist Superbadge.

When I click check challenge, this is the error I get:
Challenge Not yet complete... here's what's wrong: 
The All Lusso Scarpe Employee group page must display the following information on the right side of the page: recommended groups and individuals to follow, and the most popular topics currently under discussion.

Here is a screenshot of my page:
User-added image

Can anyone help me understand what I am doing wrong?

Thank you!
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">
   <head>
       <apex:slds />
    </head> 
	<body>
    <div class="slds-scope">     
        <table class="slds-table">
  			<thead>
    			<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>
      				</th>
    			</tr>
  			</thead>
  			<tbody>
    			<apex:repeat value="{!accounts}" var="a">
                <tr>
                  <td data-label="Account Name">
                    <div class="slds-truncate" ><apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink></div>
                  </td>
      
    			</tr>
                </apex:repeat>
            </tbody>
        </table>
     <!--   
     <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>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>-->
    </div>
        </body>
</apex:page>

 
I'm struggling with the custom lightning component on this part. I don't have much background coding and am having trouble finding resources to help me achieve coding the lightning component. If someone could help give me some framework code to create a custom lightning component to hold a URL or direct me to a resource that help break this down I'd be very appreciative.
 
I keep getting an error on Item #4 "The custom set of fields that are highlighted on account records must be assigned to the required profile."

The requirement is asking for having highlights based on profiles, but as we know compact layouts are applied to the whole system not by profile.

I am not sure how to fix this, any help is appreciated.

Hi all, I am so close to finishing this process automation badge but am stuck in one area in Step 7.

I've built out my process builder as follows

User-added image
User-added image
User-added image

And my date formula as follows
 

Case(MOD(Date__c-DATE(1900,1,7),7),0,"Sunday",1,"Monday",2,"Tuesday",3,"Wednesday",4,"Thursday",5, "Friday",6,"Saturday", "")
 



Challenge Not yet complete... here's what's wrong:  The Robot Setup Day of the Week formula does not seem to be working properly. The Day of the Week should not fall on Saturday or Sunday. 

It works nicely but doesn't seem to pass, what could be up.
 

Hello community

I'm struggling with a small error which I can't seem to find an answer to. Can you help?

[{"message":"bad value for restricted picklist field: Bristol","errorCode":"INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST","fields":["RM_Region__c"]}]

There are scores of picklist values within "RM_Region__c". For some reason, "Bristol" is being rejected.

The closest I can get to a possible answer is that "Bristol" needs to be allocated somewhere for it to work?

I'd really appreciate any ideas the community have.

Many thanks and look forward to hearing from you.
I'm having an issue on step 8 of the LIghtining Experience Trailhead.  I've loaded all the objects and the error still says: "Challenge Not yet complete... here's what's wrong: 
Please check that all of the relationships are maintained for Opportunity Contacts and Adventure Packages that you upload from the spreadsheet."  I have all the explorers on the Adventure packages, where else would it be looking?

Thanks!
Has anyone completed this trail? I am stomped on challenge number 3, regarding created the process for fulfillment. Any pointers or guidance would be appreciated.
 
Challenge - Create a form to enter new items and display the list of items entered. To make our camping list look more appealing, change the campingHeader component to use the SLDS. Similar to the unit, style the Camping List H1 inside the slds-page-header. Modify the campingList component to contain an input form and an iteration of campingListItem components for displaying the items entered.
The component requires an attribute named items with the type of an array of camping item custom objects.
The component requires an attribute named newItem of type Camping_Item__c with default quantity and price values of 0.
The component displays the Name, Quantity, Price, and Packed form fields with the appropriate input component types and values from the newItem attribute.
The JavaScript controller checks to ensure that the Name, Quantity and Price values submitted are not null.
If the form is valid, the JavaScript controller pushes the newItem onto the array of existing items, triggers the notification that the items value provider has changed, and resets the newItem value provider with a blank sObjectType of Camping_Item__c.


My answer - 
<aura:component >
<aura:attribute name="items" type="Camping_Item__c[]"/>
<aura:attribute name="newitem" type="Camping_Item__c[]"  default="{ 'sobjectType': 'Camping_Item__c',
                   'Quantity__c'=0, 'Price__c'=0}"/>
 <p>Name:
        <ui:inputText value="{!v.newitem.name}"/>
    </p>    
  <p>Packed:
        <ui:inputCheckbox value="{!v.newitem.Packed__c}"/>
     
    </p>    
  <p>Price:
        <ui:inputCurrency value="{!v.newitem.Price__c}"/>
    </p>
    <p>Quantity:
        <ui:inputNumber value="{!v.newitem.Quantity__c}"/>
    </p>
</aura:component>


Error -

Challenge Not yet complete... here's what's wrong: 
The campingList component isn't iterating the array of 'items' and creating 'campingListItem' components.

Please share the correct solution.
<!--campingListItem.cmp-->
<aura:component >
	<aura:attribute name="item" type="Camping_Item__c" required="true"/>

	<ui:outputText value="{!v.item.Name}" />
	<ui:outputCheckbox value="{!v.item.Packed__c}" />
	<ui:outputCurrency value="{!v.item.Price__c}" />
	<ui:outputNumber value="{!v.item.Quantity__c}" />
	<ui:button label="Packed!" press="{!c.packItem}"/>
	
</aura:component>
<!--campingListController.js-->
({
	packItem : function(component, event, helper) {
		var button = event.getSource().get("v.disabled");
		component.set("v.item.Packed__c", "true");
		component.set(button, "true");
	}
})
What am I doing wrong?

 

Hi all,
I have an issue when I come to open my developer console. It opens and start to load but it quickly minimizes, showing a "loading..." text.
After that, the developer console's window freezes completely, allowing me only to close it. Same happens to the window I used to open the developer console. 
I find a solution here http://salesforce.stackexchange.com/questions/80453/developer-console-is-not-loading but I don't have enough time to switch my workspace.
I tried cleaning the browser data but nothing changed. I can also use the developer console of other salesforce accounts, so it seems it only happens with my account.


And I have another issue, I don't know if it's related or not, I'm posting it here just in case it is and it helps to see the problem.
As I couln't continue using the default developer console, I downloaded Welkin Suite, but when I build the solution, I keep getting an error that says "file has pending server changes. Please pull first", which it doesn't fix after a pull. When I'm not getting that error I get strage errors like "The attribute “(...)” was not found on the COMPONENT markup://(...): Origin"

Thanks in advance to anyone who can help me solving this!

I want to use access codes for specific events. I have a custom object called "Event Codes" with only one primary field which represents access code itself (text symbols only with length < 16, each code is unique). I manually add up new codes to an object. Some contacts and leads have text field with access code and it's one of the values of a custom object mentioned above. I use an integration with 3rd party, so that some contacts and leads have this field populated automatically with access code (text representation).

How can I relate contact / lead with my custom object based on access code? How can I relate already existing records?

I believe "Event codes" object should be a master while lead / contact are children. But I can't create master detail relationship at contact / lead object (have no such option).
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">
   <head>
       <apex:slds />
    </head> 
	<body>
    <div class="slds-scope">     
        <table class="slds-table">
  			<thead>
    			<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>
      				</th>
    			</tr>
  			</thead>
  			<tbody>
    			<apex:repeat value="{!accounts}" var="a">
                <tr>
                  <td data-label="Account Name">
                    <div class="slds-truncate" ><apex:outputLink value="{!URLFOR($Action.Account.View, a.id)}">{!a.name}</apex:outputLink></div>
                  </td>
      
    			</tr>
                </apex:repeat>
            </tbody>
        </table>
     <!--   
     <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>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>-->
    </div>
        </body>
</apex:page>