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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to passing custom value field from Sales Line to Posted Sales Invoice Line?

(0) ShareShare
ReportReport
Posted on by 607

Hi All,

Hope you are all doing good and safe. I have a requirement where i have created a custom field in sales line table and now i want to pass its value to a similar custom field with same name and type in sales invoice line table . so that it can be displayed on Sales invoice report.

Can someone pls explain how can i achieve this?

Thanks in Advance

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Due to this functionality: docs.microsoft.com/.../transferfields-function--record-

    the process is fairly easy. Create the corresponding field in the other table with the same field ID.

  • AXBOY Profile Picture
    607 on at

    hi, @Josh Anglesea  can you pls explain where exactly I should use tranferfields function to serve the purpose?

  • Verified answer
    Daniel Rimmelzwaan Profile Picture
    3,485 on at

    The sales posting routine already copies Sales Line data to the Sales Invoice Line table, and it uses a function called TransferFields. This works when the source field and the target field both have the same field number and data type (and I think they have to have the same name too). What I always do is simply copy/paste the field.

    So, when you add a field to the Sales Line table, and you want that to be copied to the invoice line, all you need to do is copy the field from the Sales Line table, and paste it in the Sales Invoice Line table. The existing TransferFields should take care of your field automatically.

  • AXBOY Profile Picture
    607 on at

    Thank you it worked

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans