• mukesh gupta 8
  • NEWBIE
  • 30 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 12
    Replies
Hi Expert,

I am doing trailhead trigger and using code this

trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
       If (a.Test_LightingCo__Match_Billing_Address__c == true && a.Test_LightingCo__BillingPostalCode__c != Null) {
            a.Test_LightingCo__ShippingPostalCode__c = a.Test_LightingCo__BillingPostalCode__c ;
        }   
    } 
}

but code is working fine and Account object records update perfect. but if i clicks on "check chellange" button on trailhead trigger page then  , i got an error 
User-added image

Please suggest

Thanks
Mukesh
Hi Expert,

I am doing trailhead trigger and using code this

trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
       If (a.Test_LightingCo__Match_Billing_Address__c == true && a.Test_LightingCo__BillingPostalCode__c != Null) {
            a.Test_LightingCo__ShippingPostalCode__c = a.Test_LightingCo__BillingPostalCode__c ;
        }   
    } 
}

but code is working fine and Account object records update perfect. but if i clicks on "check chellange" button on trailhead trigger page then  , i got an error 
User-added image

Please suggest

Thanks
Mukesh

 
Hi Expert,

I am doing Trailhead Trigger chalange :- 

User-added image
and i have create a trigger:-

trigger AccountAddressTrigger on Account (before update) {
    for(Account a : Trigger.New){
        System.assertEquals(TRUE, a.Test_LightingCo__Match_Billing_Address__c);
        a.Test_LightingCo__ShippingPostalCode__c = a.Test_LightingCo__BillingPostalCode__c ;
  }  
}
 
that is updating the shipping postal code field fine but when i click on "CHECK CHALANGE" button then got a error that is above of the image in RED.

Please suggest what i miss.

Thanks
Mukesh
 
Hi Expert,

How can insert value in custom textfiled. when i used insert method then facing error. I am sharing error screen shot.

User-added imageUser-added image 

Please suggest.

Thanks
Mukesh
Hi Experts,

i wana to update account field value by batch class. But facing a error in attached images.

Please suggest.

User-added image

Thanks
Mukesh
Hi Expert,

I want to intgrate data into salesforec from my hybrid Mobile Application. Can you please suggest about integration process use for here(Mobile App data  into salesforec).

Please suggest an idea.

Many Thanks   

Mukesh 
Hi Experts,

I am new in salesforce  and little bit confusse for testMethod for this class, How i can use testMethod for below class so that i can get 75% code coverage, and get the  current records form the "getTodaysMileageRecords()" function that's returning the list.

@isTest

public class MileageExtension {

private final Mileage__c mileageObj;

public MileageExtension(ApexPages.StandardController controller) {

this.mileageObj = (Mileage__c)controller.getRecord();

}

public Mileage__c[] getTodaysMileageRecords() {

String createdbyId = UserInfo.getUserId();

Mileage__c[] mileageList =  [SELECT name, miles__c
FROM Mileage__c
WHERE Date__c = TODAY
AND createdbyid = :createdbyId];
return mileageList;

}

}

Waiting for possitive reply

Many Thanks

Mukesh gupta
Hi Experts,

I need hlep,

How i can test or run the force.com project in browser to check the look and feel and functionality.

Waiting for positive reply

Many Thanks
Mukesh gupta


 
Hi Experts,

I have 7+ years development in various technology like Action script 3.0, Adobe AIR, C#, Asp.Net, Sencha Touch, JavaScript, HTML, CSS, XML, SQL  and now i have got "Salesforce Administrator" certification. Currently i am preparing on Apex,visualforce. I want to change the job in Salesforce, but i have not exprience in salesforce. 

what is the best way to get the salesforec developer job. Please share your thoughts.

I am waiting for your reply.

Many Thanks
Mukesh kumar gupta

mukesh_mca2007@yahoo.co.in



 
Hi Experts,

Is it possible to execute this trigger in dveloper console without any test class.

example: -

trigger CountFriends on Contact(before insert) {
  for (Contact c : Trigger.new) {
    // We often use System.debug to see the values of variables
    System.debug('mukesh has a new friend!');
    System.debug('Hi ' + c.FirstName + ' ' + c.LastName + '!');
  }
  List<Contact> total = [SELECT Id FROM Contact];
  System.debug('mukesh has ' + total.size() + ' friends total.');
}

i am using same trigger in developer console but nothing happeing.

Pls help.

Thank's
 
Hi Experts,

Log Inspector is not showing the result in salesforce.

integer i = 123;

String s = 'Test';

System.debug(' i = '+i);
System.debug('S = '+s);

Not able to seen the result.

Please help

Thank's
Hi Experts,

Log Inspector is not showing the result in salesforce.

integer i = 123;

String s = 'Test';

System.debug(' i = '+i);
System.debug('S = '+s);

Not able to seen the result.

Please help

Thank's
Hi Expert,

I am doing trailhead trigger and using code this

trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
       If (a.Test_LightingCo__Match_Billing_Address__c == true && a.Test_LightingCo__BillingPostalCode__c != Null) {
            a.Test_LightingCo__ShippingPostalCode__c = a.Test_LightingCo__BillingPostalCode__c ;
        }   
    } 
}

but code is working fine and Account object records update perfect. but if i clicks on "check chellange" button on trailhead trigger page then  , i got an error 
User-added image

Please suggest

Thanks
Mukesh
Hi Expert,

I am doing trailhead trigger and using code this

trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
       If (a.Test_LightingCo__Match_Billing_Address__c == true && a.Test_LightingCo__BillingPostalCode__c != Null) {
            a.Test_LightingCo__ShippingPostalCode__c = a.Test_LightingCo__BillingPostalCode__c ;
        }   
    } 
}

but code is working fine and Account object records update perfect. but if i clicks on "check chellange" button on trailhead trigger page then  , i got an error 
User-added image

Please suggest

Thanks
Mukesh

 
Hi Experts,

I am new in salesforce  and little bit confusse for testMethod for this class, How i can use testMethod for below class so that i can get 75% code coverage, and get the  current records form the "getTodaysMileageRecords()" function that's returning the list.

@isTest

public class MileageExtension {

private final Mileage__c mileageObj;

public MileageExtension(ApexPages.StandardController controller) {

this.mileageObj = (Mileage__c)controller.getRecord();

}

public Mileage__c[] getTodaysMileageRecords() {

String createdbyId = UserInfo.getUserId();

Mileage__c[] mileageList =  [SELECT name, miles__c
FROM Mileage__c
WHERE Date__c = TODAY
AND createdbyid = :createdbyId];
return mileageList;

}

}

Waiting for possitive reply

Many Thanks

Mukesh gupta
Hi Experts,

I have 7+ years development in various technology like Action script 3.0, Adobe AIR, C#, Asp.Net, Sencha Touch, JavaScript, HTML, CSS, XML, SQL  and now i have got "Salesforce Administrator" certification. Currently i am preparing on Apex,visualforce. I want to change the job in Salesforce, but i have not exprience in salesforce. 

what is the best way to get the salesforec developer job. Please share your thoughts.

I am waiting for your reply.

Many Thanks
Mukesh kumar gupta

mukesh_mca2007@yahoo.co.in



 
Hi Experts,

Is it possible to execute this trigger in dveloper console without any test class.

example: -

trigger CountFriends on Contact(before insert) {
  for (Contact c : Trigger.new) {
    // We often use System.debug to see the values of variables
    System.debug('mukesh has a new friend!');
    System.debug('Hi ' + c.FirstName + ' ' + c.LastName + '!');
  }
  List<Contact> total = [SELECT Id FROM Contact];
  System.debug('mukesh has ' + total.size() + ' friends total.');
}

i am using same trigger in developer console but nothing happeing.

Pls help.

Thank's
 
Hi Experts,

Log Inspector is not showing the result in salesforce.

integer i = 123;

String s = 'Test';

System.debug(' i = '+i);
System.debug('S = '+s);

Not able to seen the result.

Please help

Thank's