I have this Action Item and onClick of it, want to trigger a Business Process. How can this be achieved?
Thanks
Like
2 comments
18:07 May 19, 2021
Dear Anu,
Can you please specify with more details on how exactly would you like to trigger the process?
Thank you.
11:23 Feb 24, 2023
Anu, Roman Brown,
Here is the Academy article to call the BP (Business Process) from the Action items menu.
https://academy.creatio.com/docs/developer/integrations_and_api/busines…
Sample,
define("AccountPageV2", ["ProcessModuleUtilities"], function(ProcessModuleUtilities) { return { entitySchemaName: "Account", methods: { // Проверяет, заполнено ли поле [Основной контакт] страницы. isAccountPrimaryContactSet: function() { return this.get("PrimaryContact") ? true : false; }, // Переопределение базового виртуального метода, возвращающего коллекцию действий страницы редактирования. getActions: function() { var actionMenuItems = this.callParent(arguments); actionMenuItems.addItem(this.getActionsMenuItem({ Type: "Terrasoft.MenuSeparator", Caption: "" })); actionMenuItems.addItem(this.getActionsMenuItem({ "Caption": { bindTo: "Resources.Strings.CallProcessCaption" }, "Tag": "callCustomProcess" })); return actionMenuItems; }, // call you porcess callCustomProcess: function() { var contactParameter = this.get("PrimaryContact"); var args = { // Process name sysProcessName: "UsrCustomProcess", // parameters process parameters: { ProcessSchemaContactParameter: contactParameter.value } }; // run process ProcessModuleUtilities.executeProcess(args); } } }; });
BR,
Bhoobalan Palanivelu
Show all comments