单击已付发票后的CRM动态自定义操作 [英] Crm dynamics custom action after clicking Invoice Paid

查看:79
本文介绍了单击已付发票后的CRM动态自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MS CRM中,当用户单击已付款的发票时,我需要通知外部站点已向该发票付款
是否可以实现此目的?

In MS CRM When user clicks Invoice Paid, I need to notify external site that this invoice was paid Is this possible to achieve this?

推荐答案

是。我可以想到两种单独的方法来做到这一点:

Yes. There are two separate ways I can think of to do this:


  1. 隐藏通过CRM的RibbonXML重新创建发票已付款按钮,并使用自己的javascript方法将发票的状态更改为付费还可以与外部站点交谈。只要将发票状态更改为已支付的唯一方法就是通过已支付发票按钮。

  1. Hide and recreate the Invoice Paid button via the CRM's RibbonXML and use your own javascript methods to change the status of the invoice to "Paid" and also talk to the external site. This would work so long as the only way the Invoice's status is changed to Paid is via the Invoice Paid button.

当您单击已支付发票时,该值的 StateCode 属性的值更改为已付费,其值为2。因此,您也可以注册一个在发票的更新消息上触发的插件,并检查实体的前后属性查看StateCode 是否等于付费。 aspx title = IPluginExecutionContext.PreEntityImages Property>前图像,并等于发布图片。这将是服务器端的解决方案,并且无论如何触发发票支付操作都可以使用,并且还使您可以访问.NET框架。

When you click the invoice paid, the value of the StateCode property of the Invoice changes to "Paid", which is a value of 2. So, you can also register a plugin that fires on the Update message of the Invoice and check the before and after properties of the entity to see if the StateCode was not equal to "Paid" in the Pre Image and equal to "Paid" in the Post Image. This would be a server-side solution and would work no matter how the Invoice Paid action was triggered, and also gives you access to the .NET framework.

这篇关于单击已付发票后的CRM动态自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆