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 / Return primitive with ...
Power Apps
Answered

Return primitive with custom connector action

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is it possible to return a primitive value from a custom connector action without it being wrapped in a JSON with key-value pairs?

 

For example, I'm working with an API currently that has a function which returns a single integer, which is not enclosed in curly brackets (it is usually 0). When I test the corresponding action on the custom connector test page, it returns 0 successfully, but it doesn't do this in apps. I haven't had the chance to see a non-zero value on it yet, so I can't test if I can always rely on Value(ctxResult) to give an accurate result.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Turns out I had to go into the Swagger editor and change the "type" and "format" fields of key-body-output to "integer" instead of "string". I'm not sure why this was only a problem for PowerApps and not the connector designer testing area, but it's working now.

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 > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard