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 Apps / Custom connection - ho...
Power Apps
Answered

Custom connection - how to create response type and build connection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

If I test my custom connector (built from importing postman); I get the following response



{
"storedFiles": {
"20190910": [
"ft_leavers",
"co_hours"
]
},
"success": true
}


How do I
1) Create a response in JSON that will let me read the data

2) Create a collection to read all the data - at the moment, only 'True' comes back when I build a collection;

ClearCollect(FTCollection, fT.Storagefiles())

 

Please and thank you

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    To get the response in PowerApps, you need to set the default response in the custom connector definition. For doing so:
     
    1) Open the custom connector action for which you want to set the response schema.
    2) Scroll down and select Add default response. Paste the returned response in the body to generate schema for you. 
    3) Save the connector.
    4) Remove the connection to custom connector in your powerapps, and add it again.
    5) Use the expression:
    ClearCollect(FTCollection, fT.Storagefiles())
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks so much!

    Only issue is I have an object in my response as well; Is there a way of showing the data from the object?

    Object.PNG

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    Yes, you can use do that by:
     
    If you want to fetch a key out of the object, then you can use:
     
    ThisItem.storedFiles.Name
     
    Here, you need to update the Name with the column you want to display.
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am getting the error message belowerror2.PNG

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    This is because the 20190910 is a array type response. To show all the values, separated by comma, you can use the below expression:
     
    Concat(ThisItem.storedFiles.20190910, Value, ",")
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much!

     

    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Is-there-a-timeout-for-API-Calls/m-p/372339

     

    I had this other question about timeouts, can you advise on the above at all?

     

    Really appreciate your help.

     

    Jese

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard