Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

How to get name of button or any other identity of button in Plugin Project if Event type is Pre-operation?

$
0
0

Hi,

I want get name of button or any other identity of button in Plugin Project. 

I have 2 button. 1- FulFill Order. 2- Cancel Order

I have created a plugin project(Assembly) and set "statuscode" as parameter. So, whenever statuscode is change, plugin will be called. 

According to my requirement, I want to validate few things before FulFill Order. Same way, I want to validate few things before Cancel Order. So I have set pre-operation as event type.

Plugin execute perfectly on the click on Fulfill Order and Cancel Order but I am not getting which button is clicked.

I don't know how can I know which button is clicked. I have separate code for Fulfill and Cancel.

Can anybody suggest me how can I know which button is clicked? or any other logic that suggest which button is clicked?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images