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 :
Copilot Studio
Unanswered

Covert JSON to string

(0) ShareShare
ReportReport
Posted on by

I'm making an http request to zendesk from the copilot. This request returns a JSON, which I can only set as a variable of type any. How can I take this variable and convert it to a string? I need the http response as a string to provide it to other parts of the copilot and other http requests, and i'm getting errors when trying to do it from my 'any' variable. 

Categories:
I have the same question (0)
  • citron-truc Profile Picture
    394 on at

    Good morning,

     

    I hope you are doing well. I had a similar problem where I had made an http call and got a json which contained a list of values of the form:

    kind: Record
    properties:
      @OData.context: String
      value:
        type:
          kind: Table
          properties:
            @OData.type: String
            classification: Blank
            createdDateTime: String
            creationOptions:
              type:
                kind: Table

            deletedDateTime: Blank
            description: Blank
            displayName: String
            expirationDateTime: Blank
            groupTypes:
              type:
                kind: Table

            id: String
            isAssignableToRole: Blank
            mail: String
            mailEnabled: Boolean
            mailNickname: String
            membershipRule: Blank
            membershipRuleProcessingState: Blank
            onPremisesDomainName: Blank
            onPremisesLastSyncDateTime: Blank
            onPremisesNetBiosName: Blank
            onPremisesProvisioningErrors:
              type:
                kind: Table

            onPremisesSamAccountName: Blank
            onPremisesSecurityIdentifier: Blank
            onPremisesSyncEnabled: Blank
            preferredDataLocation: Blank
            preferredLanguage: Blank
            proxyAddresses:
              type:
                kind: Table
                properties:
                  Value: String

            renewedDateTime: String
            resourceBehaviorOptions:
              type:
                kind: Table

            resourceProvisioningOptions:
              type:
                kind: Table

            securityEnabled: Boolean
            securityIdentifier: String
            serviceProvisioningErrors:
              type:
                kind: Table

            theme: Blank
            visibility: Blank


    In order to get a list of all ids, I used the following formula :

    citrontruc_0-1707818492670.png

     

  • citron-truc Profile Picture
    394 on at

    If you want a string as an output, I guess you can join all the list element or something like that.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
sannavajjala87 Profile Picture

sannavajjala87 210 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 153

#3
Haque Profile Picture

Haque 119

Last 30 days Overall leaderboard