Hi,
I am currently working on a flow that retrieves users from sitegroups. Firstly, I used a HTTP request to get the sitegroups, used Parse JSON on that output and used the Title output to create a variable. Photo 1 shows the overall flow.
Photo 1
Since there are 4 site groups in this test site, these 4 variables are extracted.
Variable 1
Variable 2
Variable 3
Variable 4
Now if I would insert a HTTP request in the apply to each using the Group name as a variable with URI: _api/web/getgroups/getbyname('VarGroupName')/users, I will get the following results.
_api/web/getgroups/getbyname('Test 1')/users
_api/web/getgroups/getbyname('Test 1Test Members')/users
_api/web/getgroups/getbyname('Test 1Test MembersTest Owners')/users
_api/web/getgroups/getbyname('Test 1Test MembersTest OwnersTest Visitors')/users
This photo shows the third result of above mentioned output
HTTP output 3
Now I know this is due to the Append to string variable input, but does anyone know how I can make sure that one of each of these variables is used.
Thanks in advance