Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Dynamic Attributes/Columns?

Posted on by 95

I am building an asset tracker and using Dataverse. Since different assets have many different attributes depending on the asset type is there a way in dataverse to store a dynamic structure almost like a "No SQL" approach where I determine what to write based on the asset? Or do I have to bite the bullet and have a really wide Asset Table covering many different attributes?

I currently have 15 or so Asset Types to track and its putting me close to 75 columns as some assets are vehicles where others are buildings etc.

 

  • mykedeabreu Profile Picture
    mykedeabreu 95 on at
    RE: Dynamic Attributes/Columns?

    Polymorphic Lookup!

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Dynamic Attributes/Columns?

    Hi,

    You could create Text field with Format as JSON field type and store the data based on your assest type.

    But this will not be helpful in your reporting and search.

    We have other data types in Dataverse which can point to multi entities -

    1. Customer Data type - Account/Contact

    2. Polymorphic Lookup - Can point to multiple Entity lookup

    Another point you have keep in your mind is Fields in Dataverse is type safe meaning it can only store what is intended to store.

    Hope this helps!

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Nya Profile Picture
    Nya 29,056 on at
    RE: Dynamic Attributes/Columns?

    Hi,

    So would you please specify which application you are using in Dynamics?

  • mykedeabreu Profile Picture
    mykedeabreu 95 on at
    RE: Dynamic Attributes/Columns?

    No I am not. I was going to do this with custom tables then using a Model Driven or Canvas Power App.

  • Nya Profile Picture
    Nya 29,056 on at
    RE: Dynamic Attributes/Columns?

    Hi,

    Are you using the following feature?

    Integrate Dynamics 365 Field Service and Supply Chain Management | Microsoft Docs

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans