• Varsha Jethwani
  • NEWBIE
  • 5 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 2
    Replies
for(Contact ThisContact: contactList){
        tempGender = ThisContact.Salutation;

        List<npct1_FC_Gender__mdt> FCGenderList =new List<npct1_FC_Gender__mdt>
                                                           ([SELECT npct1_Gender_Pick__c, npct1_Addressee_Salutation__c
                                                            FROM npct1_FC_Gender__mdt
                                                            WHERE npct1_Gender_Pick__c = :tempGender
                                                            ]);
        for(npct1_FC_Building_Block__mdt ThisBuilingBlock :FCBuildingBlockList)
        {
    
           resultString = FCGenderList.get('npct1_Gender_Pick__c') +resultString;
           // further code
        }
 }
I know I can't write list in for loop, what would be another way to implement this scenario where I have to pass the variable value in where clause and I have another for loop where I have to retrieve value from that list accordingly to tempGender value.
 
I am trying to check the condition in my apex code, but it fails due to highlighted code. I am trying to access field NPCT_Recur_Donation_Opps_Total_Number__c from Opportunity's Account
and similarly below condition

Anyone let me know where I am wrong

for( Oppotunity opp: OppList)
{
if((opp.NPCT_Last_Reason_Code__c == NPCT_Constants.NPCT_Last_Reason_Code_AC01  ||                         (opp.Accounts.NPCT_Recur_Donation_Opps_Total_Number__c <= 1 ||                            opp.npe03__Recurring_Donation__r.NPCT_Consecutive_Reversals__c == 2))
.
.
.
}

Thanks in advance
Regards,
Varsha
suppose last_payment_date is 31.1.2023
then end_date must be 1.2.2023
So can I write this as

end_date = last_payment_date +1

Thanks in advance
Simple Lightning select component with two buttons. 
Expected output- Both drop-down(select component) and two buttons to be in center and on same line
Output - Both drop-down(select component) and two buttons to be in center and on different line

Can anyone tell me where I am wrong?
Thanks in advance 

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" >
  <aura:attribute name="carTypes" type="String[]" default="Sport Car, Luxury Car, Van"/>
  <aura:attribute name="searchbuttonlabel" type="String" default="Search"></aura:attribute>
  <aura:attribute name="newbuttonlabel" type="String" default="New Button"></aura:attribute>
    <lightning:layout horizontalAlign="center">
         <lightning:layoutItem padding ="around-medium">
              <lightning:select name="selectItem" aura:id="carType" label="Select Type of Car" variant="label-hidden" value=" " >
                   <option value="" text="Select Type of Car"></option>
                <aura:iteration items="{!v.carTypes}" var="carType">
                       <option text="{!carType}"></option>
                </aura:iteration>                                 
               </lightning:select>
        </lightning:layoutItem>
        
        <lightning:layoutItem padding ="around-medium">
            <lightning:button label="{!v.searchbuttonlabel}" variant="Brand"/>
            <lightning:button label="{!v.newbuttonlabel}" variant="Neutral"/>
        </lightning:layoutItem>                    
    </lightning:layout>        
</aura:component>


User-added image
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: CYCKVAFL
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: RGEVUAPB

Even after using new Org i faced same issue, please help me to resolve the problem. 
Thanks in advance.

cheers
 
I am doing Business Administration Specialist Super badge and on challenge 3 I am facing the below 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: MNVTIDOQ
Hi 

I am following the lighting web component trailhead (https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component ).
I created the web component, but when i try to add it to the home component, the custom web component is not showing and cannot add it to the home page. The helloworld.js-meta.xml file is same as what metioned in the trailhead account.
I am doing this in my trailhead playground. Any help on this will be highly appreciated
  • March 11, 2019
  • Like
  • 0