Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Fields Creation using SDK

Posted on by 390

Hi,

Is there any way to create the entity attributes(fields) using SDK. We have the list of field information in excel and we are looking for someway to automate the attributes creation.

Thanks.

*This post is locked for comments

  • Jayakumar Profile Picture
    Jayakumar 390 on at
    RE: Fields Creation using SDK

    Thank You Adrian Begovich  and Aric Levin. Your reply helped me.

  • Verified answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Fields Creation using SDK

    Take a look at the following samples on docs.microsoft.com/.../sample-create-update-entity-metadata

    You use the CreateAttributeRequest as mentioned previously with the type of attribute metadata (based on which attribute you are looking to create).

    See the special requirements if creating lookup attributes.

    Hope this helps.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Fields Creation using SDK

    Hi Jayakumar,

    You can create a field programmatically with the CreateAttributeRequest Class.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans