web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I find a component that has a specific id?

(0) ShareShare
ReportReport
Posted on by 50

Hi,

 

I'm trying to find the component that has a specific id. Does anyone know how to do this? My CRM instance is Online and using "CRM Online Spring '14 (6.1.2.133) (DB6.1.2.112).

 

The reason I want to find it is that when I attempt to import a managed solution I get the following error:

"A managed solution cannot overwrite the OptionSet component with Id=xxxxx"

 

I have tried using xrm classes such as RetrieveAllOptionSetsRequest and RetrieveAttributeRequest without any luck e.g.

 

RetrieveAllOptionSetsRequest retrieveAllOptionSetsRequest = new RetrieveAllOptionSetsRequest();

RetrieveAllOptionSetsResponse retrieveAllOptionSetsResponse = (RetrieveAllOptionSetsResponse)service.Execute(retrieveAllOptionSetsRequest);

 

or

 

RetrieveAttributeRequest retrieveAttributeRequest = new RetrieveAttributeRequest();

retrieveAttributeRequest.MetadataId = new Guid("xxxxxx");

RetrieveAttributeResponse retrieveAttributeResponse = (RetrieveAttributeResponse)service.Execute(retrieveAttributeRequest);

 

Thanks

 

 

Ken

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    I think you don't need to write code..

    when you are importing solution.. CRM will give you log file..

    This log file is XML file. Open this log file in Excel.. then in second tab you will find which component / option set is failing, and then you can do changes accordingly. 

     

  • Verified answer
    Kenco Profile Picture
    50 on at

    thanks for the reply Mahadeo but in this case the guid wasn't in the log either. Microsoft have taken a copy of the database to do more analysis on this.

    By the way another good method of finding a control with a specific GUID is to open a current field in the solution, copy the url, replace the attribute guid in url with the one you are trying to find then paste the new url back into the browser. This will show you the attribute if it is there. Unfortunately the one I was looking for was not there.

    Thanks

    Ken

  • Suggested answer
    Community Member Profile Picture
    on at

    I maked this sql to find in the database where the field is uniqueidentifier and contain id:

    select 'select '''+ table_name +''' from ' + a.table_name + ' where '+ column_name +' = ''b422f0ec-372c-e711-80dd-005056bd5340'';' from (

    SELECT t.name AS table_name,

    c.name AS column_name,

    ty.name

    FROM sys.tables AS t

    INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID

    INNER JOIN sys.types ty ON c.user_type_id = ty.user_type_id

    where c.name like '%id%' and ty.name = 'uniqueidentifier'

    ) as a

    Hope this can help you

  • Suggested answer
    Willem De Backer Profile Picture
    20 on at

    there is a chrome extension to do things like this, called "level up for dynamics CRM/365".

    very easy to use and very helpfull. you can do various things like open record by id , copy the current record id , add logical names to form , and many more ..

    pastedimage1563347238572v1.png

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi have explored here more, please look it once:

    pravinpawarweb.wordpress.com/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans