• ifthikar ahmed
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 3
    Replies
Hi All, ia m actually trying the below trail head ...
-------------------------------------
Keep contact addresses in sync with their account's address
You've been given a requirement to keep contact addresses in sync with the accounts they belong to. Use Process Builder to create a process on the Account object that updates child Contact addresses when an account's address is updated.

Challenge Requirements:
The process can have any name
The process must have an Update Records action that updates Contact mailing address fields (Street, City, State, Postal Code, Country) when the parent Account shipping address field values are updated
The process must be active

NOTE: To complete this challenge, you may have to deactivate the validation rule for the Account object (created from a previous challenge).-------------------------------------------------------------

1. for this is selected the account obj and action while creating and editing.
2. in criteria i entered the formula as below 
OR(

ISCHANGED([Account].ShippingStreet),

ISCHANGED([Account].ShippingCity)  ,

ISCHANGED([Account].ShippingState),

ISCHANGED([Account].ShippingCountry),

ISCHANGED([Account].ShippingPostalCode)



3. immediate change : No criteria—just update the records!

Field                          *Type*                 Value*

1.Mailing Street      Field refrence   [Account].Shipping address
2. similarly for all other Street, City, State, Postal Code, Country as per requirement 

then activated it ...

getting below error while selecting check challenge in trial head 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Account number must be 8 characters long.: []

pls comfirm me is my logic correct 




 
 i am useing chrome web browser and i am not able to find standard Salesforce page header and sidebar elements.

why is it ?? what shuld i do ?

 
01<apex:page standardController="Contact" Sidebar="False">
02<apex:form >
03    <apex:pageBlock >
04        <apex:pageBlockSection >
05           Contact First Name : {!Contact.FirstName}<br/>
06           Contact Last Name : {!Contact.LastName} <br/>
07        
08           Contact Owner Email : {!Contact.Owner.Email}
09                    
10        </apex:pageBlockSection>
11    </apex:pageBlock>   
12</apex:form>
13   
14</apex:page>

my concern is reg line number 5 and 6 there is no field in contact with name firstname and second name respectively.. then how to trace those 2 line for better understanding
with ref to the trails head 
Create a Visualforce page which shows a basic Contact record
Using the Contact standard controller, create a Visualforce page which displays a Contact's First Name, Last Name and the Email address of the Contact's Owner. 
Challenge Requirements
The page must be named ContactView
It must reference the Contact standard controller
It should include three bound variables that use the standard controller to display the following Contact record information:
First Name
Last Name
Owner Email

when i checked the contact's field i could see first name and last name is not at all available instead just name filed is there.

then how could the below code works ??

<apex:page standardController="Contact">
    
    <apex:pageBlock title="Contact Summary">
        <apex:pageBlockSection>
            
            {! Contact.firstName} <Br/>
             {! Contact.lasttName} <Br/>
           
            
            
        </apex:pageBlockSection>
    </apex:pageBlock>
HI All,

below is my coding ..

<apex:page standardController="Account" >
<apex:pageBlock  >
    <apex:form >
            <apex:inputField Value="{! Account.AccountNumber}"  /> 
    </apex:form>
    </apex:pageBlock>
</apex:page>

in the output  i am just geting the inputField alone but not its lable why ??
where in i refered some vidio ,where lable is also displayed just by using <apex:inputField Value="{! Account.AccountNumber}"  />
I am new to sales force

My trigger is for the Lead , PFB for the Trigger

trigger HelloWorld on Lead (before update) {
    for (Lead l : Trigger.new){
        l.FirstName = 'Hello';
        l.LastName = 'World';
    }


once after saving this when i go to lead and just select the record. immediately the f.name and l.name is getting changed to Hello world.... i have not even done any changes more over didnt click on the save button also..

To my understanding trigger shuld execute only if i make any change in the record or even while just viewing the record by clicking on its name itself will the trigger gets executed as it is a before trigger
my trigger is for the Lead , PFB for the Trigger

trigger HelloWorld on Lead (before update) {
    for (Lead l : Trigger.new){
        l.FirstName = 'Hello';
        l.LastName = 'World';
    }
once after saving this when i go to lead and just select the record. immediately the f.name and l.name is getting changed to Hello world.... i have not even done any changes more over didnt click on the save button also..

To my understanding trigger shuld execute only if i make any change in the record or even while just viewing the record by clicking on its name itself will the trigger gets executed as it is a before trigger
01<apex:page standardController="Contact" Sidebar="False">
02<apex:form >
03    <apex:pageBlock >
04        <apex:pageBlockSection >
05           Contact First Name : {!Contact.FirstName}<br/>
06           Contact Last Name : {!Contact.LastName} <br/>
07        
08           Contact Owner Email : {!Contact.Owner.Email}
09                    
10        </apex:pageBlockSection>
11    </apex:pageBlock>   
12</apex:form>
13   
14</apex:page>

my concern is reg line number 5 and 6 there is no field in contact with name firstname and second name respectively.. then how to trace those 2 line for better understanding
with ref to the trails head 
Create a Visualforce page which shows a basic Contact record
Using the Contact standard controller, create a Visualforce page which displays a Contact's First Name, Last Name and the Email address of the Contact's Owner. 
Challenge Requirements
The page must be named ContactView
It must reference the Contact standard controller
It should include three bound variables that use the standard controller to display the following Contact record information:
First Name
Last Name
Owner Email

when i checked the contact's field i could see first name and last name is not at all available instead just name filed is there.

then how could the below code works ??

<apex:page standardController="Contact">
    
    <apex:pageBlock title="Contact Summary">
        <apex:pageBlockSection>
            
            {! Contact.firstName} <Br/>
             {! Contact.lasttName} <Br/>
           
            
            
        </apex:pageBlockSection>
    </apex:pageBlock>
I am new to sales force

My trigger is for the Lead , PFB for the Trigger

trigger HelloWorld on Lead (before update) {
    for (Lead l : Trigger.new){
        l.FirstName = 'Hello';
        l.LastName = 'World';
    }


once after saving this when i go to lead and just select the record. immediately the f.name and l.name is getting changed to Hello world.... i have not even done any changes more over didnt click on the save button also..

To my understanding trigger shuld execute only if i make any change in the record or even while just viewing the record by clicking on its name itself will the trigger gets executed as it is a before trigger