web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Expense Report workflow - Line item approval and Line item auto posting

(0) ShareShare
ReportReport
Posted on by

Hello,

[Dyanmics AX 2012 R2 CU9]
I understand the Expense line item approval workflow type, however I see that there is a TrvLineItemAutoPostingWorkflow type workflow and am curious how this workflow type is used? 

From the 'name', it sounds like it might be for auto posting approved expense lines.
Is this true? Is it even possible? ... the posting through the UI is for the whole document, so was surprised to see the workflow type with this name.
I can't find anything about this workflow and I can't seem to use this type as a subworkflow in the Expense Line Item (TrvLineItemTemplate), as I would have expected.

Thank you,
-Mike

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
  • Crispin John Augustine Profile Picture
    37,081 on at

    You will not be able to add this as a Sub workflow, but you can add the automated Task 'TrvLineItemAutoPostingTask' to your workflow.

    The function of this Task/workflow will become clearer if you look into the Code at the class method TrvLineItemAutoPostingEventHandler.execute()

  • Community Member Profile Picture
    on at

    The event handler code for TrvLineItemAutoPostingTask does appear to post the expense lines.

    What struck me as odd was that no out of the box workflow types have TrvLineItemAutoPostingTask as a support element (except for TrvLineItemAutoPostingWorkflow).  TrvLineItemAutoPostingWorkflow cannot be used by itself, right?

    If anyone has used the TrvLineItemAutoPostingTask in a workflow, can you please let me know your workflow scenario?  I am looking at ways to utilize expense line level approval and auto posting of the line, if it is possible to do without all lines on the expense report document being approved.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans