CRM Custom Deluge Function "Composition"
I have an custom function `foo` in CRM automation, let's say it's attached to a workflow rule `X` in module Deals.
Now I also have another workflow rule `Y` calling another custom function `bar`.
Is it possible to call function `foo` inside `bar` at all?
- /**
- void bar(Int deaId)
- */
- dealRecord = zoho.crm.getRecordById("Deals", dealId);
- // do some stuff...
- // now call my other custom function; pseudo code:
- zoho.crm.foo();
Maybe `foo` needs to be Standalone type, not Automation?
One way to solve it might be exposing the function via API and then call via API connection / REST / `invokeUrl` in the implementing function. Obviously that's quite an overkill for a simple function calling.
Thanks for helping with Deluge basics!