Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Add new action when po...
Finance forum
Suggested answer

Add new action when post AP invoice journal

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.
 
//////
 
////
 
 
////
Categories:
  • 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans