Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Add new action when post AP invoice journal

(0) ShareShare
ReportReport
Posted on by 786
Hi 
 
I try to add new action when post AP Invoice  journal ,the requirement is 
1- i created new 2 field in API parameter one for Account , and the second for offset account
2- when i click post by ultimately create 2 line in voucher by using account and offset account from parameter ( use the same fields in step one) if their is no error , continue the normal code to create the voucher,
after that when i open the voucher screen in the journal it's should 4 line fined 2 by using account and offset account from parameter and 2 by using by account and offset account i enter on journal.
so how i can do that.
 
//////
 
////
 
 
////
  • Suggested answer
    Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    Add new action when post AP invoice journal
    Hi,

    To add a new action when posting an AP Invoice journal, you can follow these steps:

    1. Create two new fields in the API parameter: One for the Account and the second for the Offset Account.

    2. When you click on "Post," you need to create two lines in the voucher using the Account and Offset Account from the parameter. If there are no errors, continue with the normal code to create the voucher.

    3. After creating the voucher, when you open the voucher screen in the journal, you should see four lines. Two lines will be created using the Account and Offset Account from the parameter, and the other two lines will be created using the Account and Offset Account entered in the journal.

    To accomplish this, you will need to customize the code or develop a custom extension to handle the additional logic and create the extra voucher lines.

    Best regards,
    Kevin

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans