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

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Can you check workflowtrackingstatustable?

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    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

    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,573 Moderator on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 532 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 351 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 195

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans