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)

Product Category

(0) ShareShare
ReportReport
Posted on by 828

Hi Eveyone,


I want to filter the  products in the "All products and product masters"  tab under "Product Information Management" that do not have any Product Categories set.  

i wrote the following job but it wont work , i need further help

static void Job72(Args _args)
{
InventTable inventTable;
EcoResProductCategory ecoResProductCategory;


while select * from inventTable
not exists join ecoResProductCategory where
inventTable.product==ecoResProductCategory.product
if(ecoResProductCategory!=null)
{
info(strFmt("%1" ,inventTable.ItemId ));
}
}

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Andrew Xu Profile Picture
    3,877 on at

    Ram,

    Cause you're using notexists join, only the record of inventtable will be returned. So you need to change if(ecoResProductCategory!=null) to if(inventtable!=null).

  • Suggested answer
    RamKumarb Profile Picture
    828 on at

    Hi Andrew,

    Thank you for the reply. i tried it

    but the following line

    "inventTable.product==ecoResProductCategory.product "

    inventTable.Product never matches with ecoResProductCategory.product

  • Suggested answer
    Andrew Xu Profile Picture
    3,877 on at

    If you're trying to filter against all products instead of released products, you should use EcoResProduct instead of InventTable, and change inventTable.product==ecoResProductCategory.product to ecoResProduct.RecId == ecoResProductCategory.product

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 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans