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
Super User
Super User

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (1,824)