+ Start a Discussion
Integration NetsuiteIntegration Netsuite 

how to call after update trigger on opportunity while lead convert to account in salesforce???

NagaNaga (Salesforce Developers) 
Hi Integration Netsuite,

Triggers are only invoked for data manipulation language (DML) operations that are initiated or processed by the Java application server. Consequently, some system bulk operations don't currently invoke triggers. Some examples include:Cascading delete operations. Records that did not initiate a delete don't cause trigger evaluation.
Cascading updates of child records that are reparented as a result of a merge operation
Mass campaign status changes
Mass division transfers
Mass address updates
Mass approval request transfers
Mass email actions
Modifying custom field data types
Renaming or replacing picklists
Managing price books
Changing a user's default division with the transfer division option checked
Changes to the following objects:

BrandTemplate
MassEmailTemplate
Folder

Please follow the below link for more information and please let me know if this helps.

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_ignoring_operations.htm

Best Regards
Naga Kiran
Terence VibanTerence Viban
Hi there,

am a technical guy, so I will attempt a more technical answer because I don't think there is a way you can do this without code.

Whenever a lead is converted, an opporrtunity will be inserted alongside an account or contact. If you have logic that you want executed in a trigger, it has to be on insert. If it has to be on update for whatever reason (e.g. reparenting), then you will have to retrieve the inserted opportunity and update it. Note that you have to check this option under Customize>Leads>Settings for all Apex triggers to run on lead conversion "Require Validation for Converted Leads"

That said, in Apex code you will have access to the Ids of the created account, opportunity and contact. The basic idea is something like this,

Database.LeadConvert dlc = new Database.LeadConvert();
Database.LeadConvertResult dlcr = Database.convertLead(lc);
Id opportunityId = dlr.getOpportunityId();
Opportunity insertedOpp = [SELECT Id, Name FROM Opportunity WHERE Id=:opportunityId];

Do something with the opportunity or just run an update on it if you logic is already in an update trigger.

try {
    update insertedOpp;
} catch(Exception e){
    System.debug('An error occured while updating an opportunity after lead conversion : ' + e.getMessage());
}

Hope this was helpful. Fire back in case of questions