Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
integration:frontlinesms_integration [2019/08/28 23:47] – ↷ Links adapted because of a move operation lou | integration:frontlinesms_integration [2021/10/08 11:06] (current) – Gary Willetts | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n> | + | {{indexmenu_n> |
- | ===== FrontlineSMS integration ===== | + | ====== 23.02. |
- | + | ||
mSupply has the ability to integrate with your FrontlineSMS installation. This allows you to send your current stock levels to mSupply using an SMS (text) message from any mobile phone. This is particularly useful if, for example, you are a mobile or remote health post or dispensary which doesn' | mSupply has the ability to integrate with your FrontlineSMS installation. This allows you to send your current stock levels to mSupply using an SMS (text) message from any mobile phone. This is particularly useful if, for example, you are a mobile or remote health post or dispensary which doesn' | ||
To get mSupply talking to your FrontlineSMS installation, | To get mSupply talking to your FrontlineSMS installation, | ||
- | ==== 1) Tell mSupply the details of your FrontlineSMS database ==== | + | ==== 1. Tell mSupply the details of your FrontlineSMS database ==== |
You do this on the FrontlineSMS tab of the mSupply preferences page (//File > Preferences// | You do this on the FrontlineSMS tab of the mSupply preferences page (//File > Preferences// | ||
- | ==== 2) Set the SMS code and pack size of the items you want to receive information about ==== | + | ==== 2. Set the SMS code and pack size of the items you want to receive information about ==== |
Because SMS messages need to be kept short (they are only allowed a limited number of characters), | Because SMS messages need to be kept short (they are only allowed a limited number of characters), | ||
- | ==== 3) Add SMS senders as contacts to customers ==== | + | ==== 3. Add SMS senders as contacts to customers ==== |
mSupply needs to know which of your customers an SMS message has been sent from. To give it this information you simply add each mobile phone number that will be sending messages to mSupply to the appropriate customer as a contact. To do this use //Special > contacts// (see [[names: | mSupply needs to know which of your customers an SMS message has been sent from. To give it this information you simply add each mobile phone number that will be sending messages to mSupply to the appropriate customer as a contact. To do this use //Special > contacts// (see [[names: | ||
Line 24: | Line 22: | ||
- | ==== 4) Make sure that emailing is turned on in mSupply ==== | + | ==== 4. Make sure that emailing is turned on in mSupply ==== |
mSupply will inform the people selected in the preferences (see step 1 above) by email when a message has been received and is successfully processed or has an error. But mSupply can't send the emails if you haven' | mSupply will inform the people selected in the preferences (see step 1 above) by email when a message has been received and is successfully processed or has an error. But mSupply can't send the emails if you haven' | ||
OK, that's the setup complete and you're ready to... | OK, that's the setup complete and you're ready to... | ||
- | ==== 5) Send an SMS message to mSupply ==== | + | ==== 5. Send an SMS message to mSupply ==== |
The text message you send to mSupply must be in the correct format. Any mistakes and the message will be rejected and will have to be resent. The correct format is this: | The text message you send to mSupply must be in the correct format. Any mistakes and the message will be rejected and will have to be resent. The correct format is this: | ||
Line 57: | Line 55: | ||
When an SMS message has been received by mSupply an email will be sent to the recipients selected in the FrontlineSMS preferences (set in step 1 above). It will tell them that it has been successfully processed or that there was an error (and will give details of the error). In the case of a successful message mSupply will also create a reminder (see [[other_stuff: | When an SMS message has been received by mSupply an email will be sent to the recipients selected in the FrontlineSMS preferences (set in step 1 above). It will tell them that it has been successfully processed or that there was an error (and will give details of the error). In the case of a successful message mSupply will also create a reminder (see [[other_stuff: | ||
- | ==== 6) View and complete the stock history record ==== | + | ==== 6. View and complete the stock history record ==== |
When mSupply has successfully processed an SMS message it produces a Customer stock history record of the appropriate type (imprest or stock history) for the appropriate customer. See [[issuing_goods: | When mSupply has successfully processed an SMS message it produces a Customer stock history record of the appropriate type (imprest or stock history) for the appropriate customer. See [[issuing_goods: | ||
Line 64: | Line 62: | ||
- | ==== 7) If anything goes wrong ==== | + | ==== 7. If anything goes wrong ==== |
Any errors which occur during the processing of SMS messages are sent by e-mail to the people selected in the FrontlineSMS preferences so that appropriate action can be taken. The error messages detail the problem to make troubleshooting easier. The most likely problems with SMS messages are: | Any errors which occur during the processing of SMS messages are sent by e-mail to the people selected in the FrontlineSMS preferences so that appropriate action can be taken. The error messages detail the problem to make troubleshooting easier. The most likely problems with SMS messages are: | ||
* Sender phone number not added as a contact to a customer in mSupply or not added exactly as it appears in the FrontlineSMS database. | * Sender phone number not added as a contact to a customer in mSupply or not added exactly as it appears in the FrontlineSMS database. | ||
Line 72: | Line 70: | ||
Please note that all SMS and FrontlineSMS database error messages are also written to the log: to view them go to //Special > View log// (if you want to display only SMS errors select the 'SMS error' item in the right hand drop down list in the log display window). This can be very helpful for working out if anything' | Please note that all SMS and FrontlineSMS database error messages are also written to the log: to view them go to //Special > View log// (if you want to display only SMS errors select the 'SMS error' item in the right hand drop down list in the log display window). This can be very helpful for working out if anything' | ||
- | // Previous: [[other_stuff:custom_data|Custom Data]] | + | \\ |
+ | \\ | ||
+ | | | ||
---- struct data ---- | ---- struct data ---- | ||
+ | pagestatus.status | ||
---- | ---- | ||