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
ಇಲ್ಲಿ ಅನ್ವಯವಾಗುವ ನಿಯಮಗಳು
ಈ ಪರದೆಯಲ್ಲಿರುವ ಎಲ್ಲವೂ ತನ್ನದೇ ಆದ ನಿಯಮಗಳಿಗಿಂತ ಪ್ಲಾಟ್ಫಾರ್ಮ್ ನಿಯಮಗಳನ್ನು ಪಾಲಿಸುತ್ತವೆ. ನೀವು ಅದನ್ನು ಬಳಸುವ ಮೊದಲು ತಿಳಿದುಕೊಳ್ಳಬೇಕಾದವುಗಳು:
- ಪಟ್ಟಿಯನ್ನು ಸಂಕುಚಿತಗೊಳಿಸುವುದು — ಹುಡುಕಾಟ, ಷರತ್ತುಗಳು, ವಿಂಗಡಣೆ, ಮೊತ್ತಗಳು, ರಫ್ತು ಮತ್ತು ಉಳಿಸಿದ ವೀಕ್ಷಣೆಗಳು.
- ಏನು ಬದಲಾಯಿಸಬಹುದು? — ದಾಖಲೆಯನ್ನು ಸಂಪಾದಿಸಲಾಗದ ಐದು ಆಧಾರಗಳು.
- ಕಂಪನಿಗಳು ಮತ್ತು ವ್ಯಾಪಾರ ಘಟಕಗಳು — ಈ ಪಟ್ಟಿಯ ಮೇಲಿರುವ ಸ್ವಿಚರ್ ಅದಕ್ಕೆ ಏನು ಮಾಡುತ್ತಿದೆ.
- ದಾಖಲೆಯನ್ನು ರಚಿಸುವುದು. — ಅಗತ್ಯವಿರುವ ಕ್ಷೇತ್ರಗಳು, ಆಯ್ಕೆಗಳು ಎಲ್ಲಿಂದ ಬರುತ್ತವೆ ಮತ್ತು ಸಂಖ್ಯೆಯನ್ನು ಹೇಗೆ ಹಂಚಲಾಗುತ್ತದೆ.
- ಸ್ಪ್ರೆಡ್ಶೀಟ್ ಅನ್ನು ಆಮದು ಮಾಡಿಕೊಳ್ಳಲಾಗುತ್ತಿದೆ — ಈ ಪರದೆಯು ಒಂದನ್ನು ಸ್ವೀಕರಿಸುತ್ತದೆ ಮತ್ತು ಇದು ಟೈಪಿಂಗ್ನಂತೆಯೇ ಅದೇ ನಿಯಮಗಳ ಮೂಲಕ ಚಲಿಸುತ್ತದೆ.