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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Power automate to copy lines from Sales order to Purchase order?

(1) ShareShare
ReportReport
Posted on by 2
Hello, I want to have a button to copy lines from a sales order to a pruchase order - items and qty.
I'm a complete noob on power automate, and tried this:
 
I think this is the wrong way, as here I'm trying to create a new PO based on the order - and it goes bad because there's nowhere to get the vendor ID from.
 
Does anyone have any tips on how to do this? I'm OK with creating the PO on the vendor first, and then populating lines from a sales order, as long as I can pick it?
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,421 Super User 2026 Season 1 on at
    I think this may require a custom API if the vendor is not fixed each time, since as you mentioned, there is no Vendor ID in the standard SalesOrder API.
    PS: Can we extend standard APIs?: https://yzhums.com/20960/
    In addition, since the Sales Order Line may be more than one line, you need to add an Apply to each step.
    This is an interesting topic, I will test it in detail when I have time.
     
    Hope this can give you some hints.
    Thanks
    ZHU
  • Suggested answer
    YUN ZHU Profile Picture
    98,421 Super User 2026 Season 1 on at
    Hi, I did a simple test today and hope it can give you some tips.
    Dynamics 365 Business Central: How to create Purchase Order from Sales Order with Power Automate (Copy lines from SO to PO)
     
    Thanks
    ZHU
  • Tom_ikapa Profile Picture
    56 on at
    hi.
     
    I am curious as to why you want to do this via Power Automate when there is built in functionality within Business Central on the sales order page?
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans