Chat APIs
FMChat.ChatAPIs History
Hide minor edits - Show changes to output
Changed lines 19-22 from:
to:
Please read the comments at the beginning of each script for additional details on the available parameters for each script.
Changed lines 17-18 from:
-> '''SendMessageFromSystem (messageType ; sendTo ; attachmentPath ; entityID ; entityType ; message)''' You'd call this script directly in FMChat.fmp12, either from within your own scripts, or from FileMaker server to create [[System Chats]].
to:
-> '''SendMessageFromSystem (type ; message {; sendTo ; attachmentPath ; entityID ; entityType ; public })''' You'd call this script directly in FMChat.fmp12, either from within your own scripts, or from FileMaker server to create [[System Chats]]. This script could be useful if you want to notify people when a something has happened. Maybe Filemaker Server completed a server side script or a sales order was converted to an invoice. Messages sent from this script are not sent from a person so anytime you want to notify someone of something but not from a specific person this script would be appropriate.
Added lines 13-23:
Some scripts you paste into your solution, and some you call right in FM Chat....
-> '''NewChatFromEntity (entityID ; entityType ; entityName {; fileName})''' This is the script you'd use to create [[Entity Chats]] linked to specific records in your solution (you paste this script into your file). This is the script we call in the example file "FMChat Integration Example.fmp12" and you can take a look at that example to see how to "call" this API.
-> '''SendMessageFromSystem (messageType ; sendTo ; attachmentPath ; entityID ; entityType ; message)''' You'd call this script directly in FMChat.fmp12, either from within your own scripts, or from FileMaker server to create [[System Chats]].
Read comments at the beginning of each script for additional details on the available parameters for each script.
!! Passing in Parameters
-> '''NewChatFromEntity (entityID ; entityType ; entityName {; fileName})''' This is the script you'd use to create [[Entity Chats]] linked to specific records in your solution (you paste this script into your file). This is the script we call in the example file "FMChat Integration Example.fmp12" and you can take a look at that example to see how to "call" this API.
-> '''SendMessageFromSystem (messageType ; sendTo ; attachmentPath ; entityID ; entityType ; message)''' You'd call this script directly in FMChat.fmp12, either from within your own scripts, or from FileMaker server to create [[System Chats]].
Read comments at the beginning of each script for additional details on the available parameters for each script.
!! Passing in Parameters
Changed lines 3-12 from:
to:
!! Overview
A series of special scripts in FM Chat can be used to create chats from your own scripts instead of creating chats by hand.
These %newwin% [[http://en.wikipedia.org/wiki/Api | API]] scripts can be used to notify users of actions within your solution, such as a project's status changing to "approved", or to let people know the results of server-side processes: that a scheduled routine has completed, or that some records have errors and need to be audited.
In this way, FM Chat can be the messaging conduit within your solution, letting users know what they should be paying attention to.
!! The APIs
A series of special scripts in FM Chat can be used to create chats from your own scripts instead of creating chats by hand.
These %newwin% [[http://en.wikipedia.org/wiki/Api | API]] scripts can be used to notify users of actions within your solution, such as a project's status changing to "approved", or to let people know the results of server-side processes: that a scheduled routine has completed, or that some records have errors and need to be audited.
In this way, FM Chat can be the messaging conduit within your solution, letting users know what they should be paying attention to.
!! The APIs