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 / ServiceNow Connector: ...
Power Apps
Answered

ServiceNow Connector: Works in Flow, Fails in Canvas App (Error 502)

(0) ShareShare
ReportReport
Posted on by 2
Hi everyone,
 
I am encountering a critical issue with the standard ServiceNow (Premium) connector. The connection is successfully established and works perfectly in Power Automate flows, but it fails immediately when used in a Canvas App.
 
The Setup:
Connector: ServiceNow (Microsoft Standard/Premium)
Authentication: Basic Authentication
Instance URL: dnbtest.service-now.com (Example)
Context: Canvas App inside a Solution
The Issue: When I call ServiceNow.GetRecords(...) inside the Canvas App, it fails with Error 502.
Crucially, the error message shows that the connector is trying to resolve the wrong hostname. Instead of my configured instance URL, it is trying to reach a default Microsoft placeholder. Error Message: "The remote name could not be resolved: 'powerapps.integration.user.service-now.com'"
 
(See attached screenshot of the error details)
 
Troubleshooting: Verified that the exact same Connection Reference works in a Power Automate flow (it retrieves data correctly). Deleted and re-added the datasource in the Canvas App. Verified the Instance URL is the full FQDN. It seems like the Canvas App runtime is failing to pass the configured Instance URL to the gateway, defaulting to powerapps.integration... instead.
 
Has anyone seen this discrepancy between Flow and Apps before? Is there a way to force the App to respect the Instance URL?
 
Thanks!
Power apps error.png
I have the same question (0)
  • Verified answer
    MarkRahn Profile Picture
    1,351 Super User 2026 Season 1 on at
     
    I have not integrated Power Apps with ServiceNow but I thought I would take a look.
     
    If a Flow is working, you might want to look at this article though it is rather old:
     
    They use a flow to retrieve the data back to the app. I know it is not ideal.
     
    I did find this post on ServiceNow.com that seems to be the exact issue you are having:
     
    The answer from User Ashish was:
    All ServiceNow integration should use the local account with required role only. 
    Local Account or Service Account or Local User all are referring the same.
    Please ensure you are following some naming pattern for service accounts [ we are using "svc_" prefix ] and grant only minimum required role [ no admin role ]
    you can create svc_powerapp  and grant itil role for testing.
    Check, what data/table the PowerApp is looking for based on that, grant access [ role ].
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
  • trice602 Profile Picture
    16,016 Super User 2026 Season 1 on at
    Helpful!  Thanks for the response here Mark! Many thanks! 💯💯💯💯💯

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard