Extension Hooks
Rules attached to named points in a record's life: before or after it is saved, posted or approved, and when its status changes. A hook is a condition (the same expression language as custom rules) and one action: refuse with a message, warn, send on one of this company's webhooks, or write a log line. A hook cannot change a record or run code. New hooks start in dry run: evaluated and logged, never acting, until you switch them live. To fill in, work out, check, show or lock a field, use Custom Logic instead.
यह कहाँ मिलेगा?
- मॉड्यूल: प्लेटफ़ॉर्म
- समूह: स्वचालन
- अनुभाग: Extension Hooks
- स्क्रीन: Extension Hooks
कंसोल में पता: /platform/extension-hooks
सूची · 11 कॉलम · 15 इसके रूप पर क्षेत्र · 4 उनमें से आवश्यक · 4 कार्रवाई
सूची क्या दर्शाती है
ये सूची के कॉलम हैं, उसी क्रम में जैसे वे दिखाए गए हैं। इनमें से किसी को भी सॉर्ट किया जा सकता है, फ़िल्टर किया जा सकता है, छिपाया जा सकता है या निर्यात किया जा सकता है।
| स्तंभ | किस्म | फ़ील्ड नाम |
|---|---|---|
| Hook | मूलपाठ | name |
| Point | स्थिति | point |
| मॉड्यूल | कोड | module_key |
| स्क्रीन | कोड | resource_key |
| करता है | स्थिति | action_kind |
| विधा | स्थिति | mode |
| दौड़ें | संख्या | run_count |
| अस्वीकृत | संख्या | veto_count |
| त्रुटियाँ | संख्या | error_count |
| पर | हां या नहीं | is_active |
| Last problem | मूलपाठ | last_error |
फार्म
यहां रिकॉर्ड बनाते समय क्या पूछा जाता है। आवश्यक फ़ील्ड चिह्नित हैं; कॉन्फ़िगरेशन सूची से चुना गया विकल्प ऐसा है जिसे प्रशासक बिना किसी रिलीज़ के विस्तारित कर सकता है।
| मैदान | प्रकार | विकल्प | टिप्पणियाँ |
|---|---|---|---|
| नाम आवश्यक | मूलपाठ | A name people will recognise in the run log. | |
| किस लिए | लंबा पाठ | Why this rule exists. | |
| Point आवश्यक | पसंद | Before a record is saved, After a record is saved, Before a document is posted, After a document is posted, Before an approval is given, After an approval is given, Before the status changes, After the status changed | When in the record's life the hook runs. |
| स्क्रीन आवश्यक | पसंद | मौजूदा रिकॉर्ड से खोज की गई | The screen whose records the hook watches, e.g. CRM › Accounts, or a custom object. "Every screen" covers the whole module (not for a hook that refuses). |
| करता है आवश्यक | पसंद | Refuse with a message (before points only), Warn but allow (before points only), Send on a webhook (after points only), Only write it in the run log | Only a before hook can refuse or warn; only an after hook can send. |
| शर्त | लंबा पाठ | When the hook acts, e.g. total > 10000 and is_empty(project_code). Empty means always. You may use record fields, previous, changed, status, to_status, user and today. | |
| संदेश | मूलपाठ | What a person is told. {field} is replaced by the record's value. | |
| Message (as an expression) | मूलपाठ | Optional: work the message out, e.g. concat("Over budget by ", total - 10000). | |
| Only when moving to | मूलपाठ | For the status points: comma-separated statuses; empty means any move. | |
| वेबहुक | पसंद | मौजूदा रिकॉर्ड से खोज की गई | One of this company's outbound webhooks. It signs and screens the target like every delivery. |
| What is sent | मूलपाठ | A set of named expressions, e.g. {"number": "record_no", "total": "total"}. Empty sends the record without personal or secret fields. | |
| आदेश | संख्या | Hooks at the same point run in this order. | |
| Time budget (ms) | संख्या | 10 to 500. A run over it is skipped and counted as an error. | |
| Runs per minute | संख्या | A ceiling for warnings, sends and log lines (a refusal is never throttled). | |
| पर | हां या नहीं | A hook that fails ten runs in a row is switched off with the reason; switch it on again after fixing it. |
आप यहां क्या कर सकते हैं
परीक्षण प्राथमिक
Try this hook without running it
मांगता है: Sample record (JSON) Or a real record id
Switch live
पुष्टि के लिए पूछता है: Switch this hook live? It will refuse, warn or send on real saves from now on.
Back to dry run
पुष्टि के लिए पूछता है: Put this hook back in dry run? It stops acting at once and is only evaluated and logged.
Run log
यहां लागू होने वाले नियम
इस स्क्रीन पर सब कुछ प्लेटफॉर्म के नियमों का पालन करता है, न कि अपने खुद के नियमों का। इसका उपयोग करने से पहले आपको ये नियम जानने चाहिए:
- सूची को छोटा करना — खोज, शर्तें, क्रमबद्ध करना, योग, निर्यात और सहेजे गए दृश्य।
- क्या बदला जा सकता है — वे पांच आधार जिन पर किसी रिकॉर्ड को संपादित नहीं किया जा सकता है।
- कंपनियां और व्यावसायिक इकाइयां — इस सूची के ऊपर मौजूद स्विचर इसके साथ क्या कर रहा है।
- रिकॉर्ड बनाना — आवश्यक फ़ील्ड, विकल्प कहाँ से आते हैं, और संख्या कैसे आवंटित की जाती है।
- स्प्रेडशीट आयात करना — यह स्क्रीन एक ही मान स्वीकार करती है, और यह टाइपिंग के समान नियमों का पालन करती है।