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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
whitebeard Profile Picture

whitebeard 68

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 66 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 40 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans