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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Get Email attribute from the Entity

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to get the attributes which are of type single line of text, Email format from an entity using C#

Kindly give me the suggestions for this..

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Get Email attribute from the Entity

    Hi,

    Use below code to get attribute value from entity.

    Guid entityId=Guid.Parse("00000000-0000-0000-00000001");

    Entity entity=service.Retrieve("email",entityId,new ColumnSet("Attribute Schema Name"));

    if(entity!=null && entity.Attributes.Contains("Attribute Schema Name"))

    {

       string attributeValue=entity.GetAttributeValue<string>("Attribute Schema Name");

    }

    Replace Atribute Schema Name with your actual field name.

    If found helpful, Please mark my answer verified.

  • Suggested answer
    Emily Zhang Profile Picture
    on at
    RE: Get Email attribute from the Entity

    You can Retrieve an entity using the Organization Service

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/org-service/entity-operations-retrieve

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 401

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 71 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans