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

 

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 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
    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,413 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
    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,413 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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard