Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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?

 

 

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: How to debug custom api?

    @Anonymous 

    Can you please try again with the Persist to Entity

    Mira_Ghaly_0-1622291680127.png

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: How to debug custom api?

    @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... 

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: How to debug custom api?

    @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
    on at
    Re: How to debug custom api?

    @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,409 Super User 2025 Season 1 on at
    Re: How to debug custom api?

    @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

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow