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, ...
Unanswered

How to get property Included column value of data field of table index?

(0) ShareShare
ReportReport
Posted on by 154

Hello,

I want to get the value of the property value Included Column of the data field Qty of the index TransIdIdx of CustInvoiceTrans below.

I was able to get the Datafield(Qty) with DictIndex.includedColumn, but I can't find a way to get the Included Column value of the property in the DictIndex class.

If anyone knows how to get it, could you share it?

Any advice would be appreciated.

I have the same question (0)
  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Akshi,

    How you got Data field value?

    If you got property of the Data field value, then my assumption will be using the same you can get the included column value right?

    Thanks,

    Girish S.

  • Anton Venter Profile Picture
    20,672 Super User 2026 Season 1 on at

    Why do you want to do this?

  • akshi Profile Picture
    154 on at

    Hi Girish,

    I got the Data field value by this code.

    Dictionary dict;
    DictTable  table;
    DictIndex  idx;
    dict = new Dictionary();
    table = new DictTable(dict.tableName2Id("CustInvoiceTrans"));
    idx = new DictIndex(table.id(), table.indexName2Id("TransIdIdx"));
    
    if(idx.numberOfIncludedColumns())
    {
        for (int k=1; k <= idx.numberOfIncludedColumns(); k  )
        {
            int includedCol = idx.includedColumn(k);
            str includedColName = table.fieldName(idx.includedColumn(k));
             Info(strFmt("IncludedColumn: %1, IncludedColumnName: %2",includedCol, includedColName));
        }
    }


    Do you know how to get the value Yes or No for the Included Column?

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 April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 804

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 639 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 528

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans