• Amith Rao
  • NEWBIE
  • 65 Points
  • Member since 2015
  • Salesforce Functional/Admin/Developer

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 13
    Replies
Hello,

I wrote a trigger on before update for Asset.
When it reaches to my trigger, it is already updated hence i am not able to make difference between Old map and new map..
Is there any way where i can ask my trigger to execute before other trigger..

This behavious is strange for me too..

thank you for any suggestions
Hi guys,

I want to start up with salesforce lighting through videos and documents.

In this covid as a self learner, can u please help me how to start and go about it in salesforce lightining 

Regards
Amith S Rao
Hi Everyone,

Please correct the answers if anywhere found wrong.
Opting to the reformed state of providing correct answers will remove the ambiguity for the learners to be perfect and enjoying the Developers.salesforce.com forum.

I have come across such wrong answers and im trying to correct it wherever found....
What about you dear salesforce experts ...Hope you are with me in this statement???

Regards
Amith S Rao
trigger checkboxupdate on Opportunity (Before insert) 
{ if(trigger.isInsert)               // While entering a new record in Opp
   {  for(Opportunity acc:trigger.new)
      { acc.IsPrivate=True;}
 }

If above is my code. How will be 1% code coverage for the Trigger which does not have a helper class or method ?  Please suggest for my question.
trigger checkboxupdate on Opportunity (Before insert, before Update)  
{if(trigger.isInsert)    
   {for(Opportunity acc:trigger.new)    
        {acc.IsPrivate=True;}
 }}

Whats the code to execute in Anonymous window.? I get error in below Excution. Please suggest

Opportunity acc = new Opportunity(String Name='TrigOrangesCTRL', Date CloseDate='12/17/2017', String StageName='Prospecting');
insert acc;
trigger checkboxupdate on Opportunity (Before insert) 
{ if(trigger.isInsert)               // While entering a new record in Opp
   {  for(Opportunity acc:trigger.new)
      { acc.IsPrivate=True;}
 }

If above is my code. How will be 1% code coverage for the Trigger which does not have a helper class or method ?  Please suggest for my question.
Hello,

I wrote a trigger on before update for Asset.
When it reaches to my trigger, it is already updated hence i am not able to make difference between Old map and new map..
Is there any way where i can ask my trigger to execute before other trigger..

This behavious is strange for me too..

thank you for any suggestions
trigger checkboxupdate on Opportunity (Before insert, before Update)  
{if(trigger.isInsert)    
   {for(Opportunity acc:trigger.new)    
        {acc.IsPrivate=True;}
 }}

Whats the code to execute in Anonymous window.? I get error in below Excution. Please suggest

Opportunity acc = new Opportunity(String Name='TrigOrangesCTRL', Date CloseDate='12/17/2017', String StageName='Prospecting');
insert acc;
What is a method for adding content to Salesforce CRM content? (2 answers)
a.            Attachments
b.            Chatter files
c.             Libraries
d.            Documents
 
Just noticed some weired behaviour in Schema Builder. The select from dialog box which has options like 

(1) All Objects
(2) Selected Object

By default when you open the page you will be in All Objects setting... Just make some adjustment to the checkbox and choose option (2) still you will see the default checks. I think some kind of refresh issue going on.

 
Hi all,

Can some one please help me to answer this question - 

In Master-Detail relationship scenario the fields of the parent object need to
be displayed in the related list. How will a developer design this?
a. Cross-object formula field
b. Workflow rule
c. Validation rule
d. Assignment rule

Thanks in advance.

Regards,
Manu

Can any body tell me what are the exact differences between pageblock table and data table..?

  • September 15, 2013
  • Like
  • 0

Hi,

 

Is there any difference in:  between System.trigger.new and Trigger.new

 

-Kaity.

  • August 30, 2013
  • Like
  • 0

how many master detail relationships and lookup relationships can you have on an object.

 

 

 

shan