Select to view content in your preferred language

Making sense of data source profile variables when using them in Arcade?

509
3
07-04-2025 06:26 AM
JBH
by
Frequent Contributor

I am trying to create an Arcade script to output a summary from a few Near Me widgets but I find the data source parameters hard to work with because they look something like this:

$dataSources["widget_544_output_proximity_8360612922529992-output"]
 
Does the string of numbers in this statement (8360612922529992) refer to something that I can somehow match to the layer? I am trying to print the name of the layer in my output and I can't tell what anything is when I add a data source from the profile variables. I have tried GetFeatureSetInfo but it returns null.
 
Currently, I am having to go back to connect my layers one by one to the text widget, after I create my corresponding Arcade statement for them, just so I can keep track of what is what, but it's not very efficient.
 
Thanks!
3 Replies
ShengdiZhang
Esri Regular Contributor

Hi @JBH ,

When adding an Arcade script, you'll see some existing code snippets that can help you locate the data source.

ShengdiZhang_0-1751852341720.png

However, we know that it can still be difficult to determine the correct one from the variables. We're planning to improve this process in the future.

Thanks,

Shengdi

JohnnyMcGlone
Emerging Contributor

Any update on this? How can we select attributes from within the selected variable?

0 Kudos
JohnnyMcGlone
Emerging Contributor

I'm having the same issue. $feature isn't locating the variables in my data source layer.

0 Kudos