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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Query or report on system workflows?

(0) ShareShare
ReportReport
Posted on by 129

Has anyone ever built a SQL query or report on system workflows?

We have workflows configured per entity, for approval of invoices. I need to retrieve the conditions, approval steps, and approvers. This for audit purposes.

What I'm missing is a datamodel, so unsure which tables to get the data from, and how to link them together.

I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: Query or report on system workflows?

    Can you check workflowtrackingstatustable?

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at
    RE: Query or report on system workflows?

    Hi Robin, Here is a SQL query which can be leveraged

    www.axug.com/.../viewthread

    Also, check this thread for some pointers

    community.dynamics.com/.../workflow-history-report-for-external-audit-purposes

  • R Muilwijk Profile Picture
    129 on at
    RE: Query or report on system workflows?

    Thanks for the links and info, this is however not what I am looking for. As far as I can see the SQL shows historical approvals.

    what I need to retrieve is current workflow configuration, with the data as mentioned in my original post. Any help is welcome.

    Note: we have almost 200 entities configured, this is why I am trying to query on all the workflows.

  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    RE: Query or report on system workflows?

    Got it, A workflow configuration will include record in many tables like WorkflowTable, WorkflowActionTable, WorkflowElementTable, WorkflowVersionTable etc. You would need help from Developer to find relationship in Workflow tables. I can't find any article that can help you.

    Note: You can see all workflow configurations in a legal entity from System Administration-->Workflow-->All workflow configuration

  • R Muilwijk Profile Picture
    129 on at
    RE: Query or report on system workflows?

    thanks, will try some queries myself, if I manage to get something working, I'll share it here

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 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans