metadata,dynamics-crm , Use MetdataId to find the Attribute Name of a deleted attribute

Use MetdataId to find the Attribute Name of a deleted attribute


Tag: metadata,dynamics-crm

When I query the metadata using RetrieveMetadataChangesRequest, the RetrieveMetadataChangesResponse returns EntityMetadata and DeletedMetadata. The DeletedMetadata only returns the MetadataId.

Is there a way to get the metadata for the attribute without knowing the entity? Even just the attribute name would be fine.

RetrieveAttributeRequest I think only works if the attribute exists and if you have the entitylogicalname.


No, the only infomration available is the MetadataId.

Quoting from the SDK:

This collection is a dictionary of GUID values using a DeletedMetadataFilters as a key. The GUID values represent MetadataId values of the metadata items.

Looking at another part of the SDK specifically addresses this question:

You will also use DeletedMetadataFilters enumeration as a key to the RetrieveMetadataChangesResponse.DeletedMetadata to filter the GUID values found in the RetrieveMetadataChangesResponse.DeletedMetadata property. When you design a metadata cache you will want to use the MetadataId for each item so that you can identify deleted metadata items and remove them.

So as a developer you are expected to populate a cache of metadata of interest to your application. You can query the CRM Metadata to find changes and deletes - but in the case of a delete you are responsible for having collected the metadata in your cache.


zf2 + doctrine2 and No Metadata Classes to process

I'm using tutorial The module Application fork fine with Doctrine ORM but when i'm tring to connect in another module i'm reciving error: d:\Aptana Studio\Projects\app01>vendor\bin\doctrine-module orm:schema-tool:create Deprecated: "Symfony\Component\Console\Helper\DialogHelper" is deprecated since version 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\Qu estionHelper" instead. in D:\Aptana Studio\Projects\app01\vendor\symfony\console...

Restart or no Restart after config file change

I have to make a small change to a SQL server config file ( Do I need to restart the server in order for the changes to be made or will it be fine without? Determines if I have to wait till an appropriate time to take the server down...

create-metadata-templ in ssoadm/OpenAM fails

I'm trying to create metadata template using ssoadm in OpenAM with the following command: ssoadm create-metadata-templ -u amadmin -f pwd.txt -m sp.xml -x sp-extended.xml -s /sp -a -y It gives the following error: Incorrect option(s), ssoadm create-metadata-templ -u amadmin -f pwd.txt -m sp.xml -x sp-extended.xml -s /sp -a -y...

SOLVED: Bash Script that exports Apple Tags (Mavericks Tags) to IPTC “Keywords” metadata (using 'Tag' and 'ExifTool')

I frequently use the terminal on OS X for tasks like rysnc, ssh etc, but am still a complete noob at bash scripting. A client has a ton of images that they have been tagged using OS X tags. I need to append these tags into the IPTC metadata. So...

Downloading youtube mp3 - metadata encoding issue (python, youtube-dl, ffmpeg)

I'm trying to download audio from youtube with youtube-dl.exe and ffmpeg.exe (Windows 7), but I am having some troubles with encoding. I have to parse metadata manually, because when I try to use --metadata-from-title "%(artist) - %(title)" --extract-audio --audio-format mp3 I get ERROR: Could not interpret title of video...

Using a different image for microdata that isn't displayed in the article?

I'm working on a website that has a bunch of articles. I'm looking to find a way to add an image that is invisible without putting it inside a hidden div. When users add an article, there is a "main" image of the specific proportions that the users upload (which...

Microsoft Dynamics CRM: Export solution from 2015 to 2013

Is it possible to export a solution from CRM 2015 (7.0) to CRM 2013 (6.1)? Instructions I've found online say there's a step to choose target version in the export wizard but it doesn't appear for me.

How does telegram shows the Icon of some websites?

I am working with telegram on windows and its online version on, when I share a link with my friend Telegram shows the icon or logo of some websites in that message: Image The first website is and it has a favicon too (But do not showing that...

How to extract “Encoded by” from mp3 metadata using Python?

I am trying to write a Python script to extract metadata tags from some mp3 files. Specifically, I am looking to extract "Album" and "Encoded by", which are available if I right-click on the files and look under details: I am using currently using the eyeD3 library to parse metadata....

CRM plugin execution of operations before Exception

I have a plugin that needs to create a bunch of entities, and does so using; service.Create(Entity); At the end of the plugin (pre-operation on Update, synchronous) I sometimes need to cancel the save operation. The only way I know how is to throw an exception, but if I do...

Microsoft Dynamics CRM performance issue on client side

I am new at the company and we have CRM2011 deployed on the sites and we have agents using our CRM system. On Weekly basis, end users complain that the CRM is running slow on the clients computers. I am beginning to learn about CRM and don't konw much about...

Overwrite Blob But Keep Metadata?

I need to store information on the blob (local path of the file) and to be able to overwrite that blob but keep the information. I tried the metadata approach and its exactly what I've look for but once I overwrite the blob the metadata is also overwritten. There is...

How to Get Wordpress Attachment Taxonomy Data

I've used the method on the following page to create a Taxonomy named Location. How can I get the data from the field named Location and return its value. Please help! Thanks...

Is it possible to add and configure Dynamics CRM workflows with Powershell

Is it possible to deploy a managed solution to Microsoft Dyanamics CRM 2013/2015 with plugin assemblies via the UI, then use a PowerShell script to add workflows, and steps?

Do I need Windows Server 2012 and VS 2012 or 2013 to write plugins for MS CRM 2015?

I've been asked to take a look at some of our current plugins and alter them for our upgrade to 2015. However, looking at the SDK it says the system requirements (see here) are Windows Server 2012 (and 8, but not relevant for me) and Visual Studio 2012 or 2013....

Most efficient (& fastest) way to query a list

I'm trying to work out the most performant way to query a list. I know that there are a ton of examples out there and this has come up loads before, but I'm really new to this and I'm struggling with how to apply some of the concepts to my...

Microsoft dynamics crm learning using azure virtual machines

I want to learn basics of dynamics crm 2011 and 2013. I have MS azure subscription where I do have access to Dynamics CRM virtual machines. These virtual machines have the following flavors for Dynamics CRM GP 2013 Developer GP 2013 R12 NAV 2015 GP 2015 Which one of the...

“An unexpected error ocurred” CRM2015 OnPremise Plugins

For 2 weeks we have been experiencing a small totally random issue with plugins in CRM 2015 OnPremise. When we make an upload, randomly and without much sense (at least according to analyze all code does not) plugins are throwing us the following exception: The Web Service plug-in failed in...

Change “Opportunities” button name in navigation pane using Site Map

Is it possible that using the SiteMap to change the name of the Opportunity button that appears in the Sales navigation pane to any custom name instead of "Opportunities" ? Or this is a fixed name based on the name of the entity ? ...

In CRM 2011, best way to send information from javascript to plugins

I have an HTML web resource on a CRM 2011 form that users will be entering data into. This data will be required by CRM create/update plugins if the user chooses to save the main form, but there is no functional requirement that the data needs to be saved to...

Standardising dataset attributes across projects

Background: I have multiple old projects that I need to standardise (PRJ01-PRJ10). Each is stored under its own libname and each has around 30 datasets (note: not all studies have the same 30 datasets). The variable names have remained consistent across the projects. However, over the years, the labels and...

Facebook Graph API(Version 2.3) publish event on a page from CRM plugin/wflow using C#/JS

In FB Graph API version 1 we had written a plugin and some js which used to push details of our campaign record in CRM to a predefined FB page as an event. Now in Version 2.3 the publishing endpoint is missing from the GRAPH api.(events) My questions are 1)...

CRM 2015 and Silverlight

I've previously created a Silverlight application for CRM-2011 and there has been samples for Silverlight in the CRM-2011 SDK. However, I installed CRM 2015 SDK and I couldn't find any sample codes for Silverlight, does it no longer support silverlight ? If it still supports it, how can i create...

How to read .net assembly's meta data table

I'm reading Jeffery Richter's book "CLR via C#". He mentioned the CLR metadata table contains TypeRef and MemberRef section. I want to build a call graph by reading these MemberRef and TypeRef information. What is the best way to do so? After a search, I found somebody read the file...

Java/Oracle : Find all Dependent Rows and Update Them

I have an Oracle table (COMBO_VALUES) which has been referenced by many other tables. for example 1 record in COMBO_VALUES may have been referenced by 100 different tables. I want to find all the related records (Their ID and Table Name) pointing at a COMBO_VALUES record so that I can...

Extracting PDF metadata in Python 3

What is the best module or easy script to get metadata from PDF files? Everything seems like its for python 2.7 or the module wont work. I need It for python 3.4.2 to work. = Python 2.7 With PyPDF2: With: print(input1.getDocumentInfo()) I keep getting errors: raise utils.PdfReadError("file has not...

Using headObject to get x-amz-meta from S3 File

I have a file on S3 with some metadata for example x-amz-meta-description="some description" This metadata was included when I uploaded the file to S3. If I use Amazon console to check the metadata, the metadata is there. Next, I added the following to the CORS configuration to have access to...

Filtering instances not related to the current contact

I have a custom entity Stuff and it contains a lookup to Contact. I created a 1:N relation with the latter as primary and the former as related entity. On the Contact's form I added a subgrid and I only wish to list the instances of Stuff that have the...

How to Execute an Operation Outside of a Plugin Transaction in Dynamics CRM

I have a Trace entity in my CRM system, and I want to insert records for that entity regardless of whether or not a plugin or workflow activity fails. When real-time plugin/workflow fails, all the data operations that have happened are rolled back, so any inserted Trace records are also...

Crm 2013 + To remove comma from Whole Number field

I have a field on my form of type "Whole Number". I want to remove comma from the field and display simple number. I know there exists a System Setting to remove comma however it will apply to all the fields i want to do it one only my current...

CRM Advanced Find all the icons in wrong place

I've just loaded up the advanced find and I cant click on half the icons/drop downs as they are all in the wrong place. It works fine on other servers and other machines. It appears as if its a CSS problem. Any Ideas ...

Dynamics CRM 2011 Plugin Deploy Error

I'm developing a custom plugin for CRM. When I deploy plugin to CRM on Virtual PC, I get the error below. Error registering plugins and/or workflows. Legacy plugin steps are only supported in Pre-validation and Post-operation stages How can I resolve this error ?...

Should I resubmit the binary after replying to a metadata rejection?

I have received a metadata rejection for my application requesting some clarification about my application Information Needed Your iTunes Connect settings indicate that your app serves third-party advertisements. However, we were unable to locate ads in your app. Please reply to this message to provide the steps for locating third-party...

How do I use the custom publisher prefix when creating a new entity field in CRM 2013?

I need to create a new field on a custom entity in a Microsoft Dynamics CRM 2013 solution. When I create the field the name is prefixed with an static "new_". I can see that there is a default publisher with this prefix and a custom one with another prefix....

List Entity Relationships in Dynamics CRM 2013/2015

Is it possible to return a list of relationships on a particular type of entity (not an individual record) using the CRM/XRM SDK? For example, if I have an entity called "Case" and I need to see if it has a relationship with "MyCustomEntity" is it possible to query the...

How do you use link text as value in value?

I'm trying to markup some HTML with microdata, however I'm getting an issue with my markup: Here's my current HTML: <div> <h1> <a href="">The name is here</a> <small>(Some extra info)</small> </h1> Tons more content about the thing </div> What I want to do is describe the existence of the...

How do I read an attribute below in CRM 2011 using javascript?

I am looking for the most simplest way of writing javascript code to read an attribute(s) from the fetch xml given below. I have bumped into very complex ways of doing it. Can you suggest a quick and efficient way of doing it. <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="bch_delegate">...

Using Metadata/Inheritance to factor out code across multiple classes

I have two classes that will represent two very simple databases, and each has a "Save" function which will write what's in the class to a file. Since the code within the "Save" function is very similar, I was wondering if I could factor it out. One of my colleagues...

Linq query gives me ambigious invocation error on the select statement

building a query to return workflows that are in the waiting status and are related to a certain entity... When I try to write the select statement in my linq query, I get the error "Ambigious invocation" on the select statement. I'm not sure exactly what it means. Here is...

Debugging a Dynamics CRM Plug-in

I'm having trouble debugging a Dynamics CRM Online (2015) plug-in (C#). I'm following the instructions on this MSDN article to attach to a process. In the Attach To Process window, I select "Show processes from all users" and refresh. However, I don't see any of the four service processes listed...

getting content-type=“text/plain” for image?

I'm gathering the favicon of ,Its basically a image but the content type is text/plain; charset=utf-8? can we set text/plain; charset=utf-8 this content type for image also or image only? but in other favicons from other websites i'm getting image/icon as content type !

Why does ^metadata 'symbol not work?

The documentation on metadata claims that ^{:hi 10} 'x is equivalent to (with-meta 'x {:hi 10}), but I can't see that. Evaluating the following on a repl, (binding [*print-meta* true] (prn ^{:hi 10} 'x) (prn (with-meta 'x {:hi 10}))) prints the following, which shows that the first case doesn't get...

In CRM 2011 how to create a record and associate it in the same ExecuteMultipleRequest

I'm struggling to find a way to use the ExecuteMultipleRequest to create a record and associate it to other records at the same time. So far I've only been successful in first creating the record, and then in another request set up my associations. With this code it throws an...

Modify a button label in dynamics crm

In my associated view pages of some entities, i want to modify some button labels. For masculine noun entities I want to have: Ajouter une nouveau "NameOfEntity" and for feminine noun entities I want to have: Ajouter une nouvelle "NameOfEntity" how can i change the button label, knowing it is...

difference between index and meta in search and lucene's support

Are there any differences between metadata and index in terms of search? m My understanding is that metadata for a document can be something such as author, keyword, etc. Index operation can be performed against the content body itself, against the metadata itself, against the metadata body+ metadata. Is this...

How to add an extra metdata to a field of an object?

I have an abstract class Node that everybody should implement in our office: public abstract class Node { public abstract void run(); } The implemented classes should also contain at least one input and one output properties. Please look at the following example: public class LineNode : Node { public...

How do I export dicom datasets to excel?

I am still quite new to coding, and have a couple of questions. I was working on a few MRI Images with the file extension '.dcm'. I imported the 'dicom' module which allows me to extract specific parameters (such as the Patients Name Age, Type of Scan, etc.) from the...

Dynamic CRM : Need to update Connection entities via API

I have created connection via API through below code(Dynamics Crm: creating Connection entities via API Entity connection = new Entity("connection"); connection["record1id"] = new EntityReference("contact", someContactId); connection["record1objecttypecode"] = new OptionSetValue(2); connection["record1roleid"] = new EntityReference("connectionrole", someConnectionRoleId); connection["record2id"] = new EntityReference("incident", someCaseId); connection["record2objecttypecode"] = new OptionSetValue(122); connection["record2roleid"] = new...

CRM 2011 HTML web resource does not work in IE11

CRM 2011 html web resource is failing in IE11 with the error "Unable to get property 'CrmUrlEncode' of undefined or null reference". The same web resource works perfectly in IE 10 and less. The above error is triggering from the method context().getClientUrl() of XrmServiceToolkit (the codeplex library version 2.1). The...

Adding metadata to existing python objects

I am currently reading lines from a .csv file and storing the data in a list of array.array('f') objects. Since I will be passing the individual lines to different processes I would like to store an (line) id with every array.array object. I know I can do this obviously by...