Hi,
Please let me know the process of cloning an existing product from javascript (node js) code.
Regards,
Aradhana
Hello Aradhana,
Currently the only documented way to perform this is through the SDK (C#) where we have the CloneProductRequest. Documentation: docs.microsoft.com/.../sample-clone-product-records
You can however perform an http request against the following endpoint: api/data/v9.0/products(<productid>)/Microsoft.Dynamics.CRM.CloneProduct
This will run the CloneProduct action and it's a match to the request that we perform when you click on the "Clone" button. Keep in mind that since this is not documented it might not work indefinitely but since your scenario is around .js I believe it's the only viable approach.
Hope this helps!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156