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 :
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.
 
//////
 
////
 
 
////
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans