Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Workflow help - Converting a Quote into an Opportunity (Opportunity Products)

(0) ShareShare
ReportReport
Posted on by 8

Hi, 

I'm trying to create a workflow that will copy the data in a quote into an opportunity.

The main bit works fine, but im stuck when trying to copy the quote products over into the opportunity - as opportunity products.

How can i manage this?

pastedimage1619190097039v1.png

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Workflow help - Converting a Quote into an Opportunity (Opportunity Products)

    Hi,

    Thank you for your query.

    You cannot run get child records in the workflow (quote lines).

    You can write a custom code activity (custom step), to get the list of current quote products and create opportunity lines.

    Or, it is easier using Microsoft Flow.

    Here is the high-level flow idea:

    • Create Opportunity record based on Quote.
    • Use List Records action to get all quote lines.
    • Loop through each line and create Opportunity Lines. 

    If you cannot use Flow, here is another trick.

    Following toolkit you can update the child records:

    Dynamics-365-Workflow-Tools/Update Child Records.md at master · demianrasko/Dynamics-365-Workflow-Tools (github.com)

    Here is the high-level workflow logic:

    • Create a flag (two-options) on the Quote Line (for example, copy to opp). Set default value to No.
    • Workflow 1:
      • create opportunity based on the quote.
      • use update child records step (form the utility) to set the flag to true on the quote product.
    • Workflow 2: triggers on the Quote Line (update of the flag field) and creates the Opportunity Line.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans