title | description | keywords | ms.date | ms.reviewer | ms.custom | ms.topic | applies_to | ms.assetid | author | ms.author | search.audienceType | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sample: Work with attribute metadata (Developer Guide for Dynamics 365 Customer Engagement) | MicrosoftDocs |
The sample shows how to perform various actions on attributes. |
10/31/2017 |
pehecke |
sample |
|
377198f5-ac08-40e1-a727-f3ac51e7a01e |
JimDaly |
nabuthuk |
|
This sample shows how to perform various actions on attributes. You can download the sample from here.
[!includecc-sample-note]
[!includecc-how-to-run-samples]
This sample shows how to create different types of attributes in Dataverse.
In order to simulate the scenario described in What this sample does, the sample will do the following:
Checks for the current version of the org.
- The
BooleanAttributeMetadata
method creates an attribute of type boolean. - The
DateTimeAttributeMetadata
message creates an attribute of type date time. - The
DecimalAttributeMetadata
message creates an attribute of type decimal. - The
IntegerAttributeMetadata
message creates an attribute of type integer. - The
MemoAttributeMetadata
message creates an attribute of type memo. - The
MoneyAttributeMetadata
message creates an attribute of type money. - The
PicklistAttributeMetadata
message creates an attribute of type picklist.
Displays an option to delete all the data created in the sample. The deletion is optional in case you want to examine the data created by the sample. You can manually delete the data to achieve same results.
[!INCLUDEfooter-include]