The following topic details high level integration processes. It is designed for System Administrators and Insula Software support staff.
- Open the MYOB ODBC Connection. Integration continues only if successful.
- Build Sql string for retriving TFS clients to integrate
- Select * from v_intTFSClient where
- If the integration profile has Integrate New Only set then
- Client.s_link_int is null
- Else
- ii. Client.s_link_int is null or client.s_link_int <> ‘N/A’
- If all clients are being integrated then
- Client.l_client_id <> 0
- Else
- Client.s_client_num = [value from profile]
- If any context other than [All Contexts] is in the profile then
- Client.l_context_id = [value from profile]
- Read eligible TFS clients. Integration continues if there is at least 1 record
- For each TFS Client in the recordset do the following
- Search MYOB for a matching record. If client.s_link_int is empty then search for a match where client.s_client_num = myob.cards.cardIdentification, else search using client.s_link_int = myob.cards.cardRecordId
- If a matching record is found then we build a SQL Update statement, using the client.s_link_int value as the primary key value of the record in MYOB to update.
- Else If no matching record is found then we build a SQL Update statement, using the value of 0 as the primary key value of the record in MYOB to update. This is because MYOB uses the update statement to insert a record, and it will automatically set the value of the primary key field when it sees the value of 0. Then the myob record is re-read to get the primary key value that myob assigned, and it is updated into TFS client.s_link_int
- Emails are sent if the profile requires them.
- A history record is created and saved to int_history.