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

Community site session details

Session Id : ULNpe5HqJy38JL1E64jYMb
Power Automate - Using Flows
Answered

How to debug custom api?

Like (0) ShareShare
ReportReport
Posted on 27 May 2021 09:03:05 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 Moderator on 29 May 2021 at 12:34:55
    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 29 May 2021 at 09:54:23
    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 Moderator on 29 May 2021 at 07:57:59
    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 28 May 2021 at 04:57:08
    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 Moderator on 27 May 2021 at 11:11:01
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete