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 / How to debug custom api?
Power Apps
Unanswered

How to debug custom api?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

I created a custom api and I am calling it using perform a bound action in flow.

But my flow is failing after 10mins due to time out.

I am tested my code and its working fine with other entities and i have this ossue with particular entity. I did unit tests also, everything seems fine. I am not able to find what is the issue.

 

I want debugg the plugin to check the errors, i am trying to debug using profiler in plugin registration tool. But I am not sure what "message" i have to add in plugin registration step, as I am calling it in flow. I dont think create or update msg will work.

 

Is there any way to debug this custom api?

 

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    There are few ways to debug your custom API:

    1. Tracing - just use TracingService inside your plugin code and trace execution information. Cause plugin to trigger, check trace logs - easy enough, right?

    2. More complicated way but using it you will be able to use the plugin profiler. In order to do that you can use following approach:

    • mark your Custom Api as the one that allows custom processing steps
    • modify your code to leave the code execution when stage from PluginExecutionContext is equal to 30 (it is the usual stage where it will work)
    • add the step to your plugin that handles your custom API message
    • start the profiling for this step

    Once all the steps above done, cause the plugin to trigger and use plugin debugger as you do it with usual plugins.

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
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard