== Capabilities ==
Within Integromat Make you can connect Beds24 to third party Apps and services. Beds24 will then send booking data to Integromat Make which will be passed on to the services you connected to
== Limitations ==
=== Beds24 ===
*Set up an Auto Action (SETTINGS-GUEST MANAGEMENT-AUTO ACTIONS) which selects the bookings which will be sent to IntegromatMake. Set "Trigger Action" = automatic.*Select the Auto Action which you want to use for IntegromatMake. The Auto Action must be created by the Account which owns the property, actions linked from other accounts cannot be used.*Tick the rooms for which you want to send bookings. Only bookings from rooms enabled for Integromat Make and which meet the trigger conditions in the Auto Action will be sent.
*Create an apiKey of 16 or more characters and save it.
*Choose your send strategy, bookings can be sent continuously, repeatedly, once only or after each modification.
*A default set of booking information is sent to IntegromatMake, this can be customized by specifying the fields you want to send, one per line at the setting "Data fields". See below for a set of all fields.
====Send Strategy====
*Continuously - send bookings repeatedly with the last modified time set to the current time. This will force Integromat to re-import the bookings with every read.
=== Integromat Make ===*Create an Make account at [https://www.integromat.com/en/?pc=beds24 IntegromatMake].
*Search for the Beds24 App.
*Connect the Beds24 App to your scenario and enter the apiKey you created and the Beds24 Property Id.
*Select the trigger "watch bookings" and map the data into your scenario as you require.
*Make sure to set the limit value in "watch bookings" high enough to allow Integromat Make to process all the bookings you expect to be in the data. If you leave it at 1, only the first booking in each trigger will be processed.
*When prompted to "Choose where to start", select the "All" option.
[[File:Integromat_choose_where_to_start.png]]
==== Send template variables to IntegromatMake====The advanced section of the Integromat Make connection form has eight template fields where you can enter Beds24 Template Variables.
The matching "template" data field must be specified in Beds24 as one of the Integromat Make data fields to enable the field. (template1 etc.).
The Template Variable will be calculated and it's value sent to Integromat Make with the booking.
<embedvideo service="youtube">https://youtu.be/rwI8_Eijeuw</embedvideo>
<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Integromat Make provides [https://partners.integromat.com/?utm_source=sendy&utm_medium=email&utm_content=subject-a&utm_campaign=0520-newsletter list of developers] who can help with integrations.
*Make sure the Integromat "Make" App Limit can process the maximum number of bookings you expect to be sent for each trigger, especially if you are sending the bookings one time only, more bookings than the limit value will not be processed.
== How it works ==
In Integromat Make you create a scenario which automates tasks for you. A scenario is comprised of a series of modules that indicate how data should be transferred and transformed between Beds24 and other apps/services.
Bookings are sent from Beds24 to Integromat Make when the room is enabled and the booking meets the trigger condition in the selected auto action. If you have multiple properties enabled for Integromat Make and the auto action applies to their bookings, those bookings will also be sent.Bookings which were sent will appear in Integromat Make via the "watch bookings" trigger.
These bookings will then be automatically transferred from Integromat Make to the apps/services in your Integromat Make scenarios.
Integromat Make triggers the booking read when the scenario runs, they are not pushed from Beds24.
== Data Fields ==
If the data fields setting is left empty, a default set of information will be sent about each booking.
If the data fields setting is used, only the booking number, modifiedTime and the fields specified are sent to IntegromatMake.
Data field values must be specified one per line.
== Common Problems ==
'''Some bookings are not processed'''
Make sure to set the limit value in "watch bookings" high enough to allow Integromat Make to process all the bookings you expect to be in the data. If you leave it at 1, only the first booking in each trigger will be processed.
'''Only new/recently modified bookings are processed'''
Make sure the "Choose where to start" option is set to "All". This option can be changed by going to the "Scenarios" tab in integromat Make and right clicking the Beds24 Watch Bookings module.
[[Image:Integromat_choose_where_to_start_menu.png|450px|link=]]
[[Media:Integromat_choose_where_to_start_menu.png|view large]]
== Examples ==
===Sample Scenarios===
Integromat Make provides a range of sample scenarios at https://www.integromatmake.com/en/integrations/beds24?fromImt=1&pc=beds24.
<div class="mw-collapsible mw-collapsed">
2. Go to Integromat Make and create a scenario, start with a Google Forms, and set it to “Watch Responses”
[[Image:integromat_subaccount1.png|650px|link=]]
3. Set the connection ( you will need to Allow Integromat Make to access your Google account),
a) Choose the “File” this is the same name you gave your “Form” in Google forms.
b) Worksheet, Google forms should create a worksheet in your Google drive, you need to select this here.
c) Maximum number of returned rows, Here, set the maximum number of results that Integromat Make will work with during one cycle, You can set this to one, we will make this scenario constantly checking for new responses.
[[Image:integromat_subaccount2.png|650px|link=]]
4. After this, it will ask you to “Select the first row” this means the row you want Integromat Make to start checking the worksheet, it should normal be set to number”2” because the first row is used for the column names.
*You need to set the API key you have set under Settings -> Account - > Account Access
*Click on “Add Items” under Create Account in IntegromatMake, here you will need to add the variables into the correct fields.
**Leave the “API” field empty, the fields
Click on “OK” and you are ready to test this scenario,
Open you Google form and insert some information, “username / Email and password” this will be added to row 2 on your worksheet, go to Integromat Make and click on “Run Once” it will insert this user as a sub account into your Beds24 account.
</div>
</div>
<div class="mw-collapsible-content">
1. After you setup your Beds24 module in Integromat Make ( showing in this video https://wiki.beds24.com/index.php/Integromat.com#Integromat) set the Google Chrome module.
[[Image:push1.png|650px|link=]]
[[Media:push1.png|view large]]
2. Click on “Add This Chrome” and install the Integromat Make google chrome plugin.
[[Image:push2.png|650px|link=]]
5. Paste the Registration code on the Chrome module in IntegromatMake
[[Image:push4.png|650px|link=]]
[[Media:push4.png|view large]]
6. Create the message you want to send , you can use the Beds24 Template variables that show in IntegromatMake
[[Image:push5.png|650px|link=]]
<div class="mw-collapsible-content">
If you want to collect additional guest information and add this to the booking, you can do this using a Google Form and IntegromatMake. Setup a google form with the information/questions you want to collect from a guest, and using Integromat Make we will get the response from the form and insert into the correct booking.
In this example we will show you how to collect additional guests information like “First name, Last Name, Id number and birth date. And insert this into the “Info” field of the booking
5. Log into IntegromatMake, and start a new Scenario, the first module we are going to need is Google Forms and set this to “Watch Responces”.
6. Set the connection ( you will need to Allow Integromat Make to access your Google account),
a. Choose the “File” this is the same name you gave your “Form” in Google forms.
b. Worksheet, Google forms should create a worksheet in your Google drive, you need to select this here.
c. Maximum number of returned rows, Here, set the maximum number of results that Integromat Make will work with during one cycle, You can set this to one, we will make this scenario constantly checking for new responses
[[Image:Guestinfo5.png|650px|link=]]
7. After this, it will ask you to “Select the first row” this means the row you want Integromat Make to start checking the worksheet, it should normal be set to number ”2” because the first row is used for the column names.
8. Now we will need to add another module, add the “Json” module and set it to “Create Json”
11. You will also need to add under “Notes” the following (See image) above
a. FirstName: - add the Integromat Make variable for the First Name
b. Last Name: - add the Integromat Make variable for the Last Name
c. Id Number: - add the Integromat Make variable for the ID Number
d. Birth Date: - add the Integromat Make variable for the Birth Date
12. Set the module HTTP, and set this to “Make a Request”
After you do this, go to your Google form and fill it in as a “guest” than in Integromat Make click on “Run Once” it should retrieve the answers and insert into the booking in the field “Notes”.
</div>
If you want to collect additional guest information ( or update the current information) and add this to the booking, you can do this using a Google Form and IntegromatMake. Setup a google form with the information/questions you want to collect from a guest, and using Integromat Make we will get the response from the form and insert into the correct booking.
In this example we will show you how to collect additional guests information like “First name, Last Name, address, city, postcode and country. And insert this into the corresponding field of the booking
4. Log into IntegromatMake, and start a new Scenario, the first module we are going to need is Google Forms and set this to “Watch Responses”.
4.1. Set the connection ( you will need to Allow Integromat Make to access your Google account),
a. Choose the “File” this is the same name you gave your “Form” in Google forms.
b. Worksheet, Google forms should create a worksheet in your Google drive, you need to select this here.
c. Maximum number of returned rows, Here, set the maximum number of results that Integromat Make will work with during one cycle, You can set this to one, we will make this scenario constantly checking for new responses
4.2. After this, it will ask you to “Select the first row” this means the row you want Integromat Make to start checking the worksheet, it should normal be set to number ”2” because the first row is used for the column names.
[[Media:Guestinfofromdoc7.png|view large]]
7.1 Click on safe, now go to your google form, fill in the form with a actual Booking ID ( make sure it is a “test” booking) after you do this go back to integromat Make and click on “Run Once”, it should get the responses and insert the information into the Booking.
</div>
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >
=== Send a booking to Integromat Make and set a Info Code===
</div>
<div class="mw-collapsible-content">
Due to a combination of some settings and or specific modules in Integromat Make sometimes Integromat Make can miss out on bookings sent to IntegromatMake.
If this happens on a frequent basis we recommend that you setup Beds24 to continuously send the bookings to IntegromatMake, once the bookings is correctly picked up by Integromat Make you can setup a Json module to create a code ans set a info code in the Booking in Beds24 using the API.
This way once a booking is correctly sent it will contain the Info code and based on this info code you can filter out this booking the next time it is sent to Integromat Make stopping the bookings from going thru any other modules in IntegromatMake.
Each customer has its own Integromat Make module setup and so it is hard to create a scenario valid for everyone, however the only thing we need to setup is 2 modules a Json module to create the Json code and a HTTP module to send the code to Beds24 to set the info code.
Have a look at the following video to understand how the sequence will work,
1. Under Settings > Apps & Integrations > Integromat, set the "Send strategy=Continuously"
In the Data fields set all the necessary fields that you need to pass from Beds24 to IntegromatMake, it is required that you set a "template" field (template1), we are using this to pass the Info code to IntegromatMake.
Integromat Make Setup.
Json Module,
"infoItems": [
{
"code": "IntegromatMake",
"text": "OK"
}