I am trying to Listen the Creates and Updates on NetSuite native record ‘estimate’. I am trying to create corresponding Contract and Contract Item (custom Objects; estimate header data <> Contract; estimate line data <> Contract item) in Salesforce. I am mapping estimate line items to Salesforce Contract Items. The process creates a new Contract and Contract Items in Salesforce when I create a new NetSuite Estimate. Same for the update as well.
When I am adding a new line to an existing NetSuite estimate (which have been already synced to Salesforce) the Salesforce Contract Item step that is supposed to Create a new Contract Item but it ignores the record. If I edit and save the estimate again without making any changes to the lines, the NetSuite listener triggers again and this time the Salesforce Contract Item import creates a new line.
I am not sure why is it not behaving correctly in the first trigger. Anyone faced this issue before?