Call C# Code from Ribbon JScript CRM Online 2011

前端 未结 5 1827
醉梦人生
醉梦人生 2020-12-05 21:14

I need to have some code execute on the click of the ribbon button on an entity that updates some related data from CRM Online 2011. I would prefer not to have to write all

5条回答
  •  佛祖请我去吃肉
    2020-12-05 21:40

    I'm late for the party here, but just to simplify things for people looking at this topic for the newest version of CRM (because it's tagged as crm online): Currently there is something which is called "Action" that can be created the same way as Workflow or Business Process Flow. You can specify input and output parameters for that Action. Main advantages:

    • you can register a plugin for that action, so instead of running jScript logic you can run some c# logic

    • you can call this action using webAPI

    As for CRM 2011 although it's already quite outdated - better approach than suggested in the accepted action is to run your logic on post RetrieveMutliple of your custom entity, so that you will avoid creation/deletion of some magic records (and users will only have to have Read privilege for them, not create or update).

提交回复
热议问题