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.
 
//////
 
////
 
 
////
  • Suggested answer
    Kevin Xia Profile Picture
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans