You need to sign in to do that
Don't have an account?
Nandigam Rajesh
need to update a field in another custom object using only apex trigger.
hi here while updating the picklist field from to active to inactive need to insert a record in the invoice. Please find below code is not working.
Regards
Rajesh
trigger newinvoice on Contact (after update) { List<Invoice__c> recordsToupdate = new List<Invoice__c>(); for (Contact c : [select id,name,status__c from Contact where status__c='active']) { if (Trigger.isupdate) { Invoice__c ln = new Invoice__c(); ln.name = 'aaa' ; } } update recordsToupdate; }
Regards
Rajesh
Raj Vakati
What is the relation bwterrn contact and invoice ?? can you give me an API NAMES
Raj Vakati
Here is the code for insert