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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / One string variable wi...
Power Automate
Unanswered

One string variable with multipe values

(0) ShareShare
ReportReport
Posted on by 18

Hi, 

 

I am trying to retrieve users in site groups from a Sharepoint site. Firslty I am retrieving al the site groups through a HTTP request, put that output in a Parse Json, and then turning the names of the site group in a variable. Photo 1 shows the overall flow.

Photo 1: Complete flowPhoto 1: Complete flow

The following photo's show the four outputs from [apply to each - append to string variable]

Variable 1Variable 1Variable 2Variable 2Variable 3Variable 3Variable 4Variable 4

If I would insert a HTTP request with the following URI:  _api/web/sitegroups/getbyname('VarGroupName')/users I will get the following 4 outputs (with an error ofcourse):

 

_api/web/sitegroups/getbyname('Test 1')/users

_api/web/sitegroups/getbyname('Test 1Test Members')/users

_api/web/sitegroups/getbyname('Test 1Test MembersTest Owners')/users

_api/web/sitegroups/getbyname('Test 1Test MembersTest Owners Test Visitors')/users

 

Here is a photo of the 3rd result.

HTTP output 3HTTP 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 only one of each variable is filled in individually?

 

Thanks in advance!

 

Categories:
I have the same question (0)
  • PieterVeenstra Profile Picture
    31 on at

    when you do an append you should put a separator in.

     

    So something like text1;text2;text3

     

    Then in the in the apply to each feed is with 

     

    split(....)

     

    where the ... is the variable that is set to text1;text2;text3

     

    Now you will get 3 items 

     

    Text1  and text2 and text3

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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard