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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to transfer values...
Power Apps
Unanswered

How to transfer values from a custom field on a salesorderdetail into a custom field on a invoicedetail

(0) ShareShare
ReportReport
Posted on by 601

Hi, 

 

In a Dynamics 365 Sales environment, I have added a custom field to both the SalesOrderDetail entity and the InvoiceDetail entity.

 

When an order is fulfilled and an invoice is created from the order, how can I edit the "copy" proces (from order to invoice) so it includes this custom field on the SalesOrderDetail so the values also appear in the invoice for the respective InvoiceDetail record?

 

The "copy" is done using the button "Create Invoice" on the Order record, which calls the API "https://xxx.dynamics.com/api/data/v9.0/ConvertSalesOrderToInvoice". Is this call calling another process which I can/should change? Or is there another way to say that my custom field on the InvoiceDetail should be copied from the corresponding SalesOrderDetail?

 

Thanks,

Koen

I have the same question (0)
  • Prakash4691 Profile Picture
    1,332 on at

    Hi @KoenJanssensPD ,

    It looks like convert to sales order is an action (It 's a process). You can find that action in settings->process or in a default solution. Try to check what action/step has been used. If there is a create/update for invoice, you can edit the step properties and update the custom field value to get populates from sales order.

     

    If not, then you can use OOB workflow or power automate flow to populate custom field while creation of invoice record.

     

    If it answers your question, kindly give kudo and accept it as solution.

     

     

    Regards,

    Prakash

  • KoJaPD Profile Picture
    601 on at

    @Prakash4691 , I also thought it would be a process, but I cannot find it in the (more than 300) processes... 

  • Prakash4691 Profile Picture
    1,332 on at

    @KoenJanssensPD ,

    Try updating the value using OOB workflow or through power automate flow.

     

    Regards,

    Prakash

  • KoJaPD Profile Picture
    601 on at

    Hi @Prakash4691 , that would seem the only workaround indeed.

    I am however still eagerly looking for a way to be able to customize this "mysterious" API call ConvertSalesOrderToInvoice and getting to know what it is doing in the background...

  • Prakash4691 Profile Picture
    1,332 on at

    @KoenJanssensPD ,

    If it is not visible in processes then Microsoft might be handling this internally. My recommendation would be to raise MS ticket to proceed further.

     

     

    Regards,

    Prakash

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard