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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do I convert every...
Power Automate
Unanswered

How do I convert every value of array to a string?

(0) ShareShare
ReportReport
Posted on by 11

Hello,

 

I'm trying to automate the joining of the hub site. I'm able to get the site names from a list in an array. I want to convert these values to strings so I can append them to a URL (see below).

 

https://contoso.sharepoint.com/sites/[Appended String]/_api/site/JoinHubSite('27c5fcba-abfd-4c34-823d-0b4a48f7ffe6')

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @TimonBosch,

     

    You can loop through the array of items and use the current item dynamic content or the item function in an expression.


    Below is an example.

     

    currentitem_array.png

  • TimonBosch Profile Picture
    11 on at

    It seems to work but could you confirm that the response body looks like this:

     

    {
      "d": {
        "JoinHubSite"null
      }
    }
    Thank you!
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @TimonBosch,

     

    Yes, that is correct. I was getting the same response in my tests.

     

    Microsoft is not returning any details for this specific REST method. They only respond back with a HTTP 200/204 😆

    https://learn.microsoft.com/en-us/sharepoint/dev/features/hub-site/rest-joinhubsite-method#responses

     

  • TimonBosch Profile Picture
    11 on at

    You are a lifesaver. Appreciate it!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard