Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Workflow to create opp...
Sales forum
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,319 Moderator 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,319 Moderator 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,319 Moderator 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,319 Moderator 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,319 Moderator 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

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans