cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dexx3336
Helper II
Helper II

How to get error message from CDS thrown by plugin

Hello Folks, Hope everyone is fine and staying home.
I am working on building an Canvasapp to perform such operation in dyhamics 365 CE.
There is plugin registered which preventing the record to not create duplicate.
While patching the record from canvasapp i am getting the error as "The requested operation is invalid" as it throwing this message because the same record exist in dynamics 365.

but the problem is i am not getting the exact error message of that plugin which throwing from dynamics.

I collect the connection with Errors as below :

 
 

error_1.png

and when i hove on button i got the error messgae of my plugin :
Server Response:"Opportunity Units failed : Already selected Unit is associated to the opportunity"

error_2.png

Is There any way to get this Server Response message in canvas app so that I can show it to user while performing such action.

I can replace "The requested operation is invalid "  with other message. but in future if it occurred for another reason then it might create a problem.

Any suggestions on this would be appreciated.



 

1 REPLY 1
summitb
Power Participant
Power Participant

This is something I struggled long time back and it seems like there is no current solution to it. I have added it in the PowerApps Ideas. I hope they will give more flexibility around error handling.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,061)