Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Workflow to create opportunity and add associated product lines

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 

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow to create opportunity and add associated product lines

    I'm adult and I don't believe in miracles - there is an explanation why this error is thrown and I'm pretty sure it's easy.

    Can you try to create the same opportunity you're creating by a workflow and check if product can be added?

  • Alexadkin Profile Picture
    Alexadkin 517 on at
    RE: Workflow to create opportunity and add associated product lines

    Thanks anyway Andrew, i figured out the input argument, im new to "actions", even as you suggested i had this same issue, i will try and find some other way.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow to create opportunity and add associated product lines

    Ok. So during creation of opportunity product - use this input argument instead of reference from opportunity product. I can't give you a screenshot. You will have to figure out that by yourself.

  • Alexadkin Profile Picture
    Alexadkin 517 on at
    RE: Workflow to create opportunity and add associated product lines

    sure thing

    pastedimage1573502999163v1.png

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow to create opportunity and add associated product lines

    Can you please do a screenshot similar to following of your "Opportunity" action parameter similar to following and post it here:

  • Alexadkin Profile Picture
    Alexadkin 517 on at
    RE: Workflow to create opportunity and add associated product lines

    I have opportunity line and opportunity line and opportunity entities, appreciate the assistance 

    ActionInput.png

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow to create opportunity and add associated product lines

    Hello,

    You can find example described in the post I mentioned before - butenko.pro/.../

    Can you please confirm that for "Opportunity" action put you provided Entity as "opportunity"?

  • Alexadkin Profile Picture
    Alexadkin 517 on at
    RE: Workflow to create opportunity and add associated product lines

    Hi Andrew,

    1: So i removed write in product, it still failed.

    2: for point two how would I do that and where does the reference get passed? screenshot would help.

    Thanks

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow to create opportunity and add associated product lines

    There is no guarantee that it will resolve the issue but try following 2 things:

    1. Try not to pass "Write In Product".

    2. To Opportunity pass a reference from "Action Input" Opportunity and not reference to "initiating" opportunity.

  • Alexadkin Profile Picture
    Alexadkin 517 on at
    RE: Workflow to create opportunity and add associated product lines

    Hi Andrew,

    As below - Thanks

    pastedimage1573493408316v2.png

    pastedimage1573493492314v3.png

    pastedimage1573493262669v1.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

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans