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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Create Map Data Structure for Fast Lookup

(3) ShareShare
ReportReport
Posted on by 6
Howdy all,
 
I've been trying for a few days to create a map like data structure so that I can immediately lookup a certain data property. The idea would be to have a map that looks like the following while being able to look up each individual entry by name : 
 
{
    "body": [
        {
            "file.csv": "90275834"
        },
        {
            "file1.csv": "362251262"
        },
        {
            "file2.csv": "129143557"
        },
        {
            "file3.csv": "112120"
        }
   ]
}
 
So far I've been able to populate an array with mapped values as I've just shown,
but have had issues in generating a dynamic map structure within a single object. I wanted
to create an empty object, and then dynamically populate it with each array entry using 
a 'set Variable' and writing out a function : 
 
setProperty(variables('fileMap'), first(keys(items('Apply_to_each_1'))), items('Apply_to_each_1')[first(keys(items('Apply_to_each_1')))])
 
, but this gets a "self reference not supported" error. Does anyone have any ideas on how to do this?
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 45 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans