Forum Discussion
MOVC
Resolver I
2 years agoRetrieve Item from Object
What's the syntax for getting something out of an Object to store in a string variable? I use a script activity to return a single value from a data warehouse: { "resultSetCount": 1, "recordsAffe...
- 2 years ago
Found it!
@activity('Get Max Mod').output.resultSets[0].rows[0].MaxModI guess the first() breaks it. Thanks for pointing me in the right direction.
MOVC
Resolver I
2 years agoI switched the activity from Script to Lookup which got me what I need. I used the same query then
@activity('Get Max Mod').output.firstRow.MaxMod with the "first row only" option ticked worked. But there still should be a way to do this with Script activities.
MOVC
Resolver I
2 years agoFound it!
@activity('Get Max Mod').output.resultSets[0].rows[0].MaxMod
I guess the first() breaks it. Thanks for pointing me in the right direction.
- v-cboorla-msft2 years ago
Microsoft Employee
Hi MOVC
Thank you for using Microsoft Fabric Community.
Glad to know that your issue got resolved. Please continue using fabric for help regarding your issues.