web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Workflow to create opportunity and add associated product lines

(1) ShareShare
ReportReport
Posted on by 517

Hi all, 

I have created a workflow to create an opportunity when a previous opportunity is won. This works fine, now I would like to copy the opportunity products from the same opportunity to the newly created opportunity using a workflow. I know OOB there is no way to achieve this, I thought I could use Aiden Kaskela's workflow elements but I can't see a way to add opportunity product dynamics values to the "add Sale Items" step. Can this be done with workflow elements or otherwise with no code or low code?

Thanks 

I have the same question (0)
  • Drew Poggemann Profile Picture
    4 on at

    Hi Alexadkin,

    We have utilized Click2Clone from Inoic a few times with good success!  appsource.microsoft.com/.../inogic.d59d49e1-e228-4243-8155-9b937290bcf5

    Hope this helps.

  • Alexadkin Profile Picture
    517 on at

    Hi,

    Thanks for the reply. I need something at Zero cost and can be automated via a workflow ideally.  Click2Clone doesn't provide either from what I could tell.

    Thanks

  • Suggested answer
    dian74 Profile Picture
    2,477 Most Valuable Professional on at

    This free solution worked for me: https://appsource.microsoft.com/en-us/product/dynamics-365/axazure.dynamics365workflowtools?src=wnblogfeb2019  Here is the documentation on how to clone a record https://github.com/demianrasko/Dynamics-365-Workflow-Tools/blob/master/docs/Clone%20Record.md and how to clone the child records: https://github.com/demianrasko/Dynamics-365-Workflow-Tools/blob/master/docs/Clone%20Children.md

    Please mark this answer as verified if this was helpful

  • Alexadkin Profile Picture
    517 on at

    Hi Dian, thanks will take a look. Did you achieve the exact same thing im trying to do or similar with quote or order as an example?

    Thanks

  • dian74 Profile Picture
    2,477 Most Valuable Professional on at

    Yes I used it for opportunity and opportunity products.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can use my Ultimate Workflow Toolkit (url is in the signature). It can create opportunity products.

  • Alexadkin Profile Picture
    517 on at

    Hi Dian,

    could you show me some sample screenshots if the Clone record and clone child records as the documentation isnt clear particularly for the children record dynamics values.

    Thanks

  • Alexadkin Profile Picture
    517 on at

    Thanks Andrew looks interesting, any documentation for my scenario?

    Thanks again

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I don't have the step by step instruction exactly for your case but I have for the similar. Check this post - butenko.pro/.../

    So steps are:

    1. Create an action regarding "Opportunity Product" entity.

    2. Add a "Lookup" parameter pointing to "Opportunity" entity.

    3. Use "Create Opportunity Product" step from UWT and populate required fields combining data from Target Opportunity Product and "Opportunity".

    4. Save and publish action.

    5. Create a workflow that will do the main work.

    6. Inside that workflow create an opportunity.

    7. Use "Request Builder" step to set the lookup parameter to newly created opportunity.

    8. Use "Distribute Action" from "Bulk Operations" to distribute action created on the step 1 across Opportunity Products of current opportunity.

    Good luck.

  • Verified answer
    dian74 Profile Picture
    2,477 Most Valuable Professional on at

    Hello,

    I used the work flow to copy an opportunity and the opportunity products. I actually retrieved the target URL by getting the record URL of the opportunity (using a workflow to get it) and then I replaced the ID with the cloned guid id in the workflow properties. 

    https://<yourorg>.crm.dynamics.com:443/main.aspx?etc=3&id=<clonedguid>&histKey=547762411&newWindow=true&pagetype=entityrecord

    clonechildren.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans