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

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?

 

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Anonymous

    So you are having a plugin or custom workflow activity called from an action?

    Have you tried to use trace logs?

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/logging-tracing

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Mira_Ghaly

    I tried with trace logger. I can see where my plugin is stopping from it. But I am using same code for different tables as i mentioned above, but its not working for only one table.

    I dont see any mistake in my code.

    I want to debug the plugin and see why its stopping at that step.

     

    I want debug my code line by line. But I am not sure how to do that.

    I am calling this API with dynamics 365 using flow. 

     

    Thank you... 

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Anonymous 

    So it does not matter from where you are triggering your plugin..If you attached the profiler as described in the below article , you should be able to debug your plugin line by line

    https://vishalgrade.com/2016/12/06/how-to-debug-a-plugin-in-dynamics-365-online-using-plugin-profiler/

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Mira_Ghaly  Thank you for the information.

     

    I tried the above steps few times. But I am not getting the break point when i debug. I am not sure what is the issue.

     

    Thank you... 

  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Anonymous 

    Can you please try again with the Persist to Entity

    Mira_Ghaly_0-1622291680127.png

     

     

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 Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard