+ Start a Discussion
bhatt bijalbhatt bijal 
 Make sure that the process is correct and that it is activated.
Create a process to update child record when the parent is updated.
You've been given a requirement to keep Contact addresses in sync with the Account they belong to. Use Process Builder to create a new process that updates all child Contact addresses when the address of the Account record is updated. This process:
Can have any name.
Must be activated.
Must update Contact mailing address fields (Street, City, State, Post Code, Country) when the parent Account shipping address field values are updated.
NOTE: You may have to deactivate the validation rule for the Contacts object (created from a previous challenge) in order to complete this challenge.
Best Answer chosen by bhatt bijal
Amit Chaudhary 8Amit Chaudhary 8
Please check below post with screen shot. i hope that will help you
1) https://developer.salesforce.com/forums/?id=906F0000000B2C0IAK
2) https://developer.salesforce.com/forums/?id=906F0000000B2B7IAK
3) https://developer.salesforce.com/forums/?id=906F0000000BCbMIAW


User-added image

User-added image

Let us know if this will help  you

Thanks
Amit Chaudhary
 
Neil Hatch 9Neil Hatch 9 
Hi,
I have a field validation that requires a comment being added when certain picklist values are manually selected. This works fine.

As the picklist field is also being updated by a Process Builder I need to add text comment to my comment field. Is there a way that I can append this text? at the moment my PB text over writes all previous comments. 
Best Answer chosen by Neil Hatch 9
Raj VakatiRaj Vakati
you can able to add like below 

User-added image
RArunrajRArunraj 

Hi,

 

can any body help me on the custom settings

 

I am having a List Custom Settings, in that i am using the name field for storing some values like A, B, C

 

I need to display these values using visualforce pages, But I am able to do that with the help of controller as shown below 

 

public class HierarchyController {     

       public List<samplelist__c> getSampleList(){      

             List<samplelist__c> allSampleList = samplelist__c.getall().values();                

             return allSampleList;    

       }

}

 

But without using controller, is it possible to get that custom setting list, of all values directly in the Visualforce page? 

 

Thanks,

Arunraj

Best Answer chosen by Admin (Salesforce Developers) 
kiranmutturukiranmutturu

u can do like this

 

 

<apex:page standardController="CSO__c" recordSetVar="CSObj"> <apex:pageBlock> <apex:pageBlockTable value="{!CSObj}" var="a"> <apex:column value="{!a.yes__c}"/> </apex:pageBlockTable> </apex:pageBlock> 

 

CSO__c is my customsetting object with list type and yes__c is my check box field.. try this...

Sharmila Sahu 12Sharmila Sahu 12 
I want to set record type while creating record in lightning component through e.force:createRecord. But I am not able to do so.
I tried using custom label and even I tried hardcoding still It is not showing correct record type and it is showing default record type for record creation.
Please find below code for javascript controller:
({
    doInit: function (component, event, helper) {
        var recId = component.get("v.recordId");
        console.log(recId);

        var action = component.get("c.getdetails");
        action.setParams({
            "sId": recId
        });
        action.setCallback(this, function (response) {
            var state = response.getState();
            if (state === "SUCCESS") {
                $A.get("e.force:closeQuickAction").fire();
                console.log("Success" + JSON.stringify(response.getReturnValue()));
                component.set("v.sampleRequest", response.getReturnValue());
                var sampProd = component.get("v.sampleRequest");
                
                 if(sampProd.Lead__c === sampProd.Contact__c){
                    var Name = sampProd.Contact__r.Name;
                }
                else
                {
                   var Name = sampProd.Lead__r.Name; 
                }
                


                var createSampleProduct = $A.get("e.force:createRecord");
                var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',
                    "defaultFieldValues": {
                        'Sample_Request__c' : component.get("v.recordId"),
                        'Name__c': Name,                    
                    }
                });
                createSampleProduct.fire();
            } else {
                console.log("Fail");
            }
        });
        $A.enqueueAction(action);
    }
})

I tried hardcoding:
              var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": '0121b0000004aeSAAQ',

I have tried using:

            var staticRecordLabel = $A.get("$Label.c.UsCanSampleProductRecordType");
                createSampleProduct.setParams({
                    "entityApiName": "Sample_Product__c",
                    "RecordTypeId": staticRecordLabel ,

it is just showing for 1 sec 
UsCanSampleProductRecordType and then it is taking me to record creation page with default record type.

Please help. 
Best Answer chosen by Sharmila Sahu 12
Khan AnasKhan Anas (Salesforce Developers) 
Hi Sharmila,

Greetings to you!

You need to use recordTypeId instead of RecordTypeId as lightning is based on aura framework which is a type of JavaScript and JavaScript is case sensitive so lightning is case sensitive.

Please refer to the below links which might help you further.

http://sfdcmonkey.com/2017/05/09/custom-record-type-selection-lightning-component/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
abu saleh khan 20abu saleh khan 20 
Hi I am getting this error when i call one component from another component by clicking on the button.

Comp2CompNav:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction,lightning:isUrlAddressable" description="c:Comp2CompNav component" access="global" >
    <aura:attribute name="firstname" type="String" />
    <aura:handler name="init" value="{!this}" action="{!c.doinit}"/>
    Hello {!v.firstname}.
</aura:component>    

js: 
({
    doinit: function(cmp, evt, helper) {
        var myPageRef = cmp.get("v.pageReference");
        var firstname = myPageRef.state.c__firstname;
        console.log('Check value with new way of fetching: '+firstname);
        cmp.set("v.firstname", firstname);
    }
})


Comp2CompNav2:
From this component I am calling another Component.

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" description="c:Comp2CompNav2 component" access="global" >
    
    <aura:attribute name="pageReference" type="Object"/>
    <aura:handler name="init" value="{!this}" action="{!c.doinit }"/>
    <lightning:navigation aura:id="navService"/>
    <lightning:button label="Navigate" onclick="{!c.handleClick}"/>
</aura:component>    


js:

({
    doinit : function(component, event, helper) {
        var pageReference = {
            type: 'standard__component',
            attributes: {
                componentName: 'c__Comp2CompNav',
            },
            state: {
                "c__firstname": "John"
            }
        };
        component.set("v.pageReference", pageReference);
     },
     handleClick: function(component, event, helper) {
        var navService = component.find("navService");
        var pageReference = component.get("v.pageReference");
       // event.preventDefault();
        navService.navigate(pageReference);
    }
})

Error Message
Best Answer chosen by abu saleh khan 20
Khan AnasKhan Anas (Salesforce Developers) 
Hi Abu,

Greetings to you!

According to lightning:isUrlAddressable documentation (https://developer.salesforce.com/docs/component-library/bundle/lightning:isUrlAddressable/documentation):

This navigation feature is supported only in Lightning Experience and the Salesforce App.

This component is not supported in Lightning Application but only in Lightning Experience and Salesforce Mobile App.

Also, see below release notes (https://releasenotes.docs.salesforce.com/en-us/summer18/release-notes/rn_lc_components_navigation.htm) for New Lightning Navigation APIs for Lightning Components:

Where: This change applies to orgs with Lightning components in Lightning Experience and all versions of the mobile app. These resources aren’t supported in other containers, such as Lightning Components for Visualforce, Lightning Out, or Communities. This is true even if you access these containers inside Lightning Experience or the Salesforce mobile app.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
The new LearnerThe new Learner 
Hi Experts,

I have small requirement where i need to filter a long text area field called Desc__c which i am not able to do that can anyone help me please.

OrderItem oli1 = new OrderItem ();
        oli1.Orderid = order.Id;
        oli1.Desc__c= 'Test OLI 1'; 
      insert oli1;


 OrderItem oli2 = [SELECT Id, Orderid
                    FROM OrderItem WHERE  Desc__c = 'Test OLI 1' LIMIT 1];

In this filter condition its throwing an error can anyone help me please thanks in adavance
Best Answer chosen by The new Learner
Bhargavi TunuguntlaBhargavi Tunuguntla
Then the first solution might work:

All the orderItems with 'Test OLI 1' in desc__c will be added to the list 'oli2'.
List<OrderItem > oli2= new List<OrderItem >(); 
for(OrderItem  oli : [SELECT Id, Orderid FROM OrderItem) { 
if(oli.Desc__c.contains('Test OLI 1')) { 
oli2.add(oli);
} 
}
AJAY KRISHNA RAJAY KRISHNA R 
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: HGSGLHNZ
 
Best Answer chosen by AJAY KRISHNA R
Khan AnasKhan Anas (Salesforce Developers) 
Hi Ajay,

Make sure that you have provided the correct Group Description.

Group Description: This group is for all Lusso Scarpe employees to collaborate and receive company announcements. All employees can join the group

Regards,
Khan Anas
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
Best Answer chosen by stuart gagan
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

I suggest you please reach out to the trailhead support team with the respective email so that they can look into it and can disconnect your Two-factor Authentication App.

Once the Two-factor Authentication App is disconnected you will be able to use your account successfully.

Please refer below link to open a case:
https://trailhead.salesforce.com/help?support=home

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Best Answer chosen by sarthak das 4
Deepali KulshresthaDeepali Kulshrestha
Hi sarthak,

If you are facing problem related to this challenge.
Please refer to these links it may be helpful for you.
https://developer.salesforce.com/forums/?id=9060G000000MQwtQAG
https://success.salesforce.com/answers?id=9063A000000DnTIQA0
https://www.youtube.com/watch?v=7Kqq6nzDwqI

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha