Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Node js command for cloning Products

Posted on by Microsoft Employee

Hi,

Please let me know the process of cloning an existing product from javascript (node js) code.

Regards,

Aradhanaclone_5F00_product.jpeg

  • Suggested answer
    RE: Node js command for cloning Products

    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans