Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
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,962 Moderator 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,054 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,054 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans