RE: Dynamics365 : Stop Products from Copying when Quote is Created
Hi,
I also had similar requirement, I achieved this by customizing +New button command on Quote subgrid.
I customized command and called my own function with the same parameters passed to +new button command action.
Then in my own JavaScript function checking for parentEntityTypeCode =3 then calling workflow which will create Quote from Opportunity using GenerateQuoteFromOpportunityRequest request, and then deleting products copied from opportunity.
When parentEntityTypeCode !=3 then calling same function used in +new button command, so that it will do same work from other entities like account or contacts to create quote.
Hope this will give you idea.