Skip to main content

Notifications

Community site session details

Community site session details

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

Extracting value from customized field of one table to another table field.

(0) ShareShare
ReportReport
Posted on by 386

I have created fields technically using AL in "Payment Journal" named as "Total WHT Amount" and "WHT Bal. No". The field "WHT Bal. No" has a table relation with "G/L Account" table and is getting the "No." of the table. I have functionally created an account named "WHT and other" (No. = 24250) in "Chart of Accounts" list page(Table: G/L Account). For this specific account, I have created a field "Remaining Balance" in which I want to get the "Total WHT Amount" from the "Payment Journal" after posting the invoice by using the "POST" action. "WHT Bal. No" in "Payment Journal" and "No." in "Chart of Accounts" are the same so I have built a conditional statement between these two for getting the value but it isn't working. Below are the screenshots attached. Kindly help me with this issue.

pastedimage1668416680275v1.png

pastedimage1668416763821v2.png

pastedimage1668416806713v3.png

pastedimage1668416877485v4.png

  • Muhammad Anas Naeemi Profile Picture
    386 on at
    RE: Extracting value from customized field of one table to another table field.

    No problem Daniele Incalza. Thank you.

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Extracting value from customized field of one table to another table field.

    sorry it was a slip of the tongue

    I wanted to write

    test.modify

  • Muhammad Anas Naeemi Profile Picture
    386 on at
    RE: Extracting value from customized field of one table to another table field.

    Solved. Thank you for your cooperation.

  • Suggested answer
    Nitin Verma Profile Picture
    21,548 Moderator on at
    RE: Extracting value from customized field of one table to another table field.

    You have to use Test.Modify() after you are updating the Remaining Balance.

    Thanks.

  • Verified answer
    Amit_Sharma Profile Picture
    2,547 on at
    RE: Extracting value from customized field of one table to another table field.

    Use test.modify

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Extracting value from customized field of one table to another table field.

    Hi

    you should do the test.INSERT

    DAniele

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 > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,051

#2
YUN ZHU Profile Picture

YUN ZHU 998 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 757

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans