Forum Discussion
loop through the column
Hi!
I have just one table with a column of names.
| name |
| aee1 |
| aee2 |
| aee3 |
| aee4 |
| aee5 |
| aee6 |
| aee7 |
| aee8 |
| aee9 |
| aee10 |
I`m trying to get the data through rest api so I`m using the query link : /rest/usermanagement/1/user?username="" . Instead of "" in the username attribute I have to add each username from the column with names (unfortunately, there`s no wildcard for this attribute that I could use to avoid looping through column).
What I have now:
I enter manually the username to the query link and get the detailed info about user. Query returns xml formatted data (there`s no problem with expanding it in the Power BI)
(just one row with data about one user only).
And what I need is:
a lot of rows with the info about each user in one table. Maybe I need to write a function and pass the name column as a parameter to it, but I`m not sure how to do that.
Any help would be really appreciated.
Cheers
- Anonymous7 years ago
Actually the initial problem was getting the list of all users with detailed info using crowd api. I found the solution using query parameter:
crowd/rest/usermanagement/1/search?entity-type=user&start-index=1000&max-results=1000&expand=user
In case anybody will ever need this :)
7 Replies
- v-piga-msftResident Rockstar
Hi Anonymous,
If it is convenient, could you share some data sample and your desired output so that we could help further on it.
Best Regards,
Cherry
- AnonymousNot applicableHi v-piga-msft, Sorry for that, I edited the post and I hope it`s more understandable now. I`d be really grateful if you could help. Thank you!
- affanSolution Sage
Hi Anonymous
Is it possible to share the pbix file?
Please see this post to get your question answered quick.
Regards
Affan