• Manjul Sharma
  • NEWBIE
  • 35 Points
  • Member since 2015

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Where am I missing a )?  My syntax is incorrect when putting this into a Process Builder. 

AND(
ISCHANGED([Price_Authorization_Request__c].Billing_Region__c ),
[Price_Authorization_Request__c].RecordType.Name = 'Standard PAR',
([Price_Authorization_Request__c].PAR_Status__c = 'Pending Approval' OR
[Price_Authorization_Request__c].PAR_Status__c = 'In-Progress')
         ) 
Where am I missing a )?  My syntax is incorrect when putting this into a Process Builder. 

AND(
ISCHANGED([Price_Authorization_Request__c].Billing_Region__c ),
[Price_Authorization_Request__c].RecordType.Name = 'Standard PAR',
([Price_Authorization_Request__c].PAR_Status__c = 'Pending Approval' OR
[Price_Authorization_Request__c].PAR_Status__c = 'In-Progress')
         ) 
Hi all!
Today I am wondering if anyone can help me with something quite simple.  I am trying to create a formula checkbox field in my contact object that relates to fields in the same contact object.

This formula field should be checked off IF contacts have completed 1 computer training or if they've completed both.

I started off with a formula similar to this,

IF(
AND (
 Digital_Lit_101__c, 1,
 Digital_Lit_201__c, 1,
0) = 0,

but get stuck at this stage. I also tried this formula,

IF( Digital_Lit_101__c , 1, 0,
  IF(  Digital_Lit_201__c  , 1, 0, "")
)

But get this error message,  Error: Incorrect number of parameters for function 'IF()'. Expected 3, received 4.

If anyone can provide assistance it would be greatly appreciated!
Thank you!
 
Hello,
I created a very simple trigger to add a Note when a Lead is created. The Note is not getting added, what am I doing wrong? (Code below) Is it not working because the Lead is not yet created? With an After Insert this shouldn't matter though. Notes are turned on and are working to manually create them.
Thanks,
Ryan
trigger AddNote on Lead (after insert) {
	List<Note> addnte = new List<Note>();
        for(Lead lds : Trigger.new){
            Note addedntes = new Note();
            addedntes.ParentId = lds.Id;
            addedntes.Body = lds.Sales_Notes__c;
            addedntes.Title = 'Creation Note';
            addnte.add(addedntes);
        }
    if(addnte.size()>0){
        insert addnte;
    }
}