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 :
Finance | Project Operations, Human Resources, ...
Answered

SQL Query to Resource requirements

(0) ShareShare
ReportReport
Posted on by 563

Dear Experts,

I use Microsoft Dynamic AX 2012 and I want to create SQL Query to get Resource requirement of release product

pastedimage1579856950159v1.png

The Location of form at  Product information management > Common > Released Product > Engineer > Route > Resource Requirement

I try to trace it by myself but get stuck 

Please kindly your help

Thanks in advance

Best Regards,

Bintang

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Bintang,

    You can right click the control and get some information or open the form in the AOT and see what is behind it. Where exactly did you get stuck?

  • Bintang Profile Picture
    563 on at

    Hi André Arnaud de Calavon,

    Yes I did, I trace from personalize form and finally get the sql query but have a duplicate row

    select InventTable.AGSItemGroupId,INVENTTABLE.ITEMID,ECORESPRODUCTTRANSLATION.NAME, ROUTEVERSION.ROUTEID,cap.NAME,cap.DESCRIPTION  from

    WRKCTRACTIVITY act inner join

    WRKCTRACTIVITYREQUIREMENTSET reqSet on act.RECID = reqSet.ACTIVITY inner join

    WRKCTRACTIVITYREQUIREMENT req on reqSet.RECID = req.ACTIVITYREQUIREMENTSET

    inner join WRKCTRACTIVITYCAPABILITYREQUIREMENT capReq on

    req.RECID = capReq.ACTIVITYREQUIREMENT

    inner join WRKCTRCAPABILITY cap on capReq.CAPABILITY = cap.RECID inner join

    WRKCTRROUTEOPRACTIVITY oprAct on act.RECID = oprAct.ACTIVITY inner join

    ROUTEOPR roOpr on oprAct.ROUTEOPR = roOpr.RECID inner join

    INVENTTABLE on roOpr.ITEMRELATION = INVENTTABLE.ITEMID inner join

    ROUTETABLE on roOpr.ROUTERELATION = ROUTETABLE.ROUTEID inner join

    ROUTEVERSION on ROUTETABLE.ROUTEID = ROUTEVERSION.ROUTEID inner join

    ECORESPRODUCTTRANSLATION on INVENTTABLE.PRODUCT = ECORESPRODUCTTRANSLATION.PRODUCT

    Is there any wrong relation on my sql query?

    Regards,

    Bintang

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Bintang,

    How many product translations are you using in your environment? Probably, you have to filter on a certain language on the EcoResProductTranslation as well. If this is a query in SQL, you can also use the DISTINCT keyword to only get unique records.

  • Bintang Profile Picture
    563 on at

    Hi André Arnaud de Calavon,

    For now distinct is my best solution

    Thank you for your help

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans