Notifications
Announcements
No record found.
Hello,
I have this tabel that contains TableNum and fienNum :
I want to get the field Name But I don't which table that contains the fieldId and the fieldName
Have you any idea how to get the field name?
Thanks
Hi, You can use global function FieldId2Name. Please check this article
yasirnedian.blogspot.com/
Hi BASMA,
can you check the SQLDICTIONARY table, TABLEFIELDIDTABLE table and TABLEIDTABLE table in SSMS.
Thanks,
Hi Basma,
In addition to the above suggestions, you can check the below blog also.
https://d365technext.blogspot.com/2018/07/get-field-label-type-and-name-using-x.html
Girish S.
thanks for reply ,
I find the tableNum but the fieldNum isn't the same in the 2 tables how can I add the relation :
select * from SQLDICTIONARY where SQLDICTIONARY.TABLEID='8246'
the problem is I haven't the name of field to use FieldId2Name
I have only the fieldLabel fieldNume and the name of table
Dont compare FieldId with FieldNum in your table. Use Name and SQLName field as relation and check.
I mean YourTableName.FieldLabel == SqlDictionary.Name.
it doesn't the same : fieldLabel and Name
May I know how you are populating data in your custom table.
Also regarding this your below comment, I think you don't need Name field as you already have tableId and fieldNum. You can try creating a Display method for 'Name' in your custom table instea dof field.
'the problem is I haven't the name of field to use FieldId2Name
I have only the fieldLabel fieldNume and the name of table'
In that case you need to use DictTable class to get the table related details.
https://community.dynamics.com/365/financeandoperations/b/dynamicsofax/posts/read-properties-of-table-fields-using-x-code
Other option will be inserting the field name instead of field label in your custom table.
i select table, then I select field associated to this table :
l
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 551 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional