meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| contacts [2023/09/14 18:46] – created johnny | contacts [2024/08/29 20:13] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Contacts ====== | ====== Contacts ====== | ||
| + | |||
| + | Each of your customer have different key stakeholders that you may correspond with during the course of business. These stakeholders are considered Contacts within the ITFlow system. When a Contact within a Client record submits a ticket via email into your ITFlow system, the ticket is automatically assigned to the relevant Client based on the email contact of the Contact. | ||
| Allow your clients to interact with the ITFlow portal by creating contacts. | Allow your clients to interact with the ITFlow portal by creating contacts. | ||
| + | |||
| + | {{:: | ||
| You can record the following information about a client contact: | You can record the following information about a client contact: | ||
| Line 8: | Line 12: | ||
| * Title | * Title | ||
| * Mark as " | * Mark as " | ||
| - | * Mark as a technical / billing contact | + | * Mark as a technical / billing contact |
| * Department | * Department | ||
| * Phone / Extension / Mobile | * Phone / Extension / Mobile | ||
| Line 20: | Line 24: | ||
| / | / | ||
| - | Read - Retrieve contact information (/read.php) | + | ==== Read - Retrieve contact information (/ |
| - | | + | |
| + | * **Default / No params - Returns all contacts** | ||
| * contact_id - Specific contact ID from the ITFlow database | * contact_id - Specific contact ID from the ITFlow database | ||
| * contact_email - Specific contact via e-mail | * contact_email - Specific contact via e-mail | ||
| + | * contact_phone_or_mobile - Specific contact via their mobile or office phone | ||
| - | '' | + | < |
| + | Invoke-RestMethod -Uri "https://demo.itflow.org/ | ||
| { | { | ||
| Line 43: | Line 50: | ||
| [...] | [...] | ||
| + | </ | ||
| + | |||
| + | ==== Create - Create a new contact (/ | ||
| + | |||
| + | |||
| + | Specify all parameters as below, even if empty. E-mail must not already exist. The new contact ID will be returned. | ||
| + | |||
| + | |||
| + | < | ||
| + | $uri = " | ||
| + | |||
| + | $body = @" | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | "@ | ||
| + | |||
| + | Invoke-RestMethod -Method Post -Uri $uri -Body $body | ||
| + | |||
| + | |||
| + | success | ||
| + | ------- | ||
| + | True 1 | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Update - Update an new contact (/ | ||
| + | |||
| + | Specify all parameters as below, even if empty. Same parameters as create endpoint, just additionally specify the contact_id to update. | ||
| + | Success (true/ | ||
| + | |||
| + | < | ||
| + | |||
| + | $uri = " | ||
| + | |||
| + | $body = @" | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | "@ | ||
| + | |||
| + | Invoke-RestMethod -Method Post -Uri $uri -Body $body | ||
| + | |||
| + | |||
| + | success count | ||
| + | ------- ----- | ||
| + | True 1 | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| - | '' | ||