I have a list of fields guids and I need to get fields names from metadata by guids using SQL is there a way to do that ? if not what are my other options?
I have a list of fields guids and I need to get fields names from metadata by guids using SQL is there a way to do that ? if not what are my other options?
Dear Partner,
To get the field in the form, you can use Xrm Get Value function.
var varMyValue = Xrm.Page.getAttribute(“CRMFieldSchemaName”).getValue() ;
www.powerobjects.com/.../crm-2011-useful-javascript-tidbits
msdn.microsoft.com/.../gg334409.aspx
For example you want to get the Name, you don't need to use Id.
var varMyValue = Xrm.Page.getAttribute(“new_name”).getValue() ;
And if from Guid you can get any field using OData Query..
See this link to get started
missdynamicscrm.blogspot.com/.../tips-and-trick-odata-crm-2011-2013.html
Which you can query any field using this ide similar to SQL.
Regards,
Mohamed Sanuj Basheer
that did the trick for me :
SELECT e.Name as 'entity' ,a.Name as field
FROM [dbo].EntityView e
left join [dbo].AttributeView a on e.EntityId = a.EntityId
where a.attributeid = ''
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Muhammad Shahzad Sh...
99
Vahid Ghafarpour
82
Super User 2025 Season 1