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 :
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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans