Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

How to get upper category hierarchies of an item?

$
0
0

Hello;

I have an item 00000003100, this item has the following category hierarchy Main>Subcat>Subcat2>Subcat3.

When I use a simple code as follows:

invTbl = InventTable::find("00000003100");
info(strfmt("%1",invTbl.categoryName()));

I always get the last category as Subcat3 in my example.How can I get the upper categories by code?

I would like to get Main or Subcat2 categories for example.

Regards


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>