Contacts Subroutines
Contact management - CRUD operations on CONTACT.1287
Subroutine count:
Table of Contents
VB_CONTACT.REV1
Signature: SUBROUTINE VB_CONTACT(CO,REQTYPE,CONTACTNO,CREC,ADDFLAG,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_CONTACT.REV1
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save or soft-delete contact records in CONTACT.1287 based on REQTYPE. Supports add, update, and delete operations with audit trail logging. |
| Dangerous REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to soft-delete, any other value to add/update |
| 2 | CONTACTNO | in | Contact number (record key within company) |
| 3 | CREC | in | Contact record data as dynamic array (written to CONTACT.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing |
| 5 | MESSAGE | out | Result message: ‘SAVED’ or ‘DELETED’ |
Tables Written: CONTACT.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_CONTACT.REV1",
"args": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": ""
}
}Last updated: 2026-02-05 11:29 PM