You need to sign in to do that
Don't have an account?

Get the Id of inserted records and the id of parent (get id of inserted quote and its opporunity)
Hello,
insert cloneQuoteList;
I am inserting the list of quote.
How can i get the Opportunity Id and Inserted qute id after the insert.
I want to use the Ids to insert the cloned quote line items
thank you
insert cloneQuoteList;
I am inserting the list of quote.
How can i get the Opportunity Id and Inserted qute id after the insert.
I want to use the Ids to insert the cloned quote line items
thank you
All Answers
the problem is the Id of the quote i cant get it before i insert them.
and the id of the opportunity is difficult to map after the quote is inserted
@Sandrine,
you want to add Opportunity-Id or Quote-Id? Opportunity-Id you can add in Quote insert calls the one you mentioned above can work for your use-case.
Can you share what exactly the issue here?
Thanks,
Gaurav
Skype: gaurav62990