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
    99,978 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
    99,978 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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,024 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,145 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 705 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans