web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard