Webinar Triggers & Functions

Webinar Triggers & Functions So uh one more time my name is victoria and today we are going to talk about uh triggers and functions i will start with the triggers i will explain you uh what is the main difference between instant trigger and scheduled one and it will take only like five ten minutes and then we will move to functions and during this city function um we are going to talk about text functions different type of data types also how to build the conditional logic and something like that and how you can how can you you use.

It in your scenarios so i'm going to share my screen and just second so can you see it yeah my arrow is good yeah it works so uh let's talk about triggers so a trigger is something that runs your scenarios that starts your scenario and.

Make has two type of triggers the first one is an instant one and the second one is scheduled so on an example of a type form so this is a service that collects different type of like a google forms or something like a form responses it collects different type of responses and uh you can just recall it from the type form and process them in make so how you can distinguish between instant trigger and the scheduled one you can see we have two modules and uh.

Just right near this watch response module you can see the label instant so meaning once you use it and you put it here you will see the lighting bolt uh assign so this means that this is an instant trigger it will run uh instantly when you receive the form response and on the other hand we have a scheduled trigger this how it looks like we you can see the clock sign and you are able to to do some schedule.

Uh there are a lot of like scheduling role you can use so it's quite powerful almost like all scheduling features here and uh what else you can set up here so you can set up the limit you can specify the limit this is the maximum number of items that will be returned in one run so for example if i have uh 10 if i have here like a limit of 10 and i received for example like 20 new responses so.

During the one run it will load only 10 responses that i will process later uh let's just choose something so also what else you can choose you can choose where to start your scheduled trigger uh you can start just from now and on so it will load only newly created and updated items uh you can also specify the date uh for example like one month old.

Webinar Triggers & Functions

And also you can load all of the responses meaning for example you want to process all of them so you just put it like all and you can process uh you can also choose manually so depending on the module um i will just choose another form so you can see you can choose it manually um you can choose so in this window there will be loaded uh different type of newly created items and you can choose between them uh from.

Which point you want to start so for example if you choose the last one so this one and the next newly will be loaded to your uh to a scenario like this so on the other hand we let's uh talk back about the instant finger uh so the instantly the logic behind the instant trigger is just a web hook and the difference between custom prep hook and this one for example that mic will create this web hook just for you you don't need to make.

Anything extra you just can select the same like form and you will see the uh url so if you know how the web works it's um it's easy for you to understand but if not just remember that the webhook is make generates some url for you like this and want something once there is something new happening in typeform the type four will call this link this url and it will say send some type of data for example a new.

Form response so sometimes make already attached to this webhook automatically for you and you will see these notes here but sometimes it's like that you need to do it by yourself so you have copy paste this link and you are going to settings and you are creating your web look so um speaking about operation consuming it's in most cases it's better to use a web hook because once you are using the schedule trigger and imagine that you set up the.

Scheduling like to run for two weeks every 15 minutes and you do you don't have any newly created items in type form so in this uh scenario in this situation every run even if there is nothing in a type form uh or one operation will be consumed for example so so now i have like three bundles uh but one more time i have nothing there but you can see that one operation is consumed already so imagine.

If you put the scheduled like to run uh every 15 minutes and there is nothing there uh still your operation will be consumed even if there is no new newly upgraded or updated items so in this scenario it's better to use the developer because if something your scenario can sleep nothing will be no operation will be concerned but if something's happening um the type form will call the make to to run this scenario so uh.

Posts Related:

    I think that was all for triggers if you have any questions please put them in the q a box and we - Make Automate

    Will talk about it later after after the functions so uh let's move to functions um i'll just remove the modules and i have here so i prefer some testing data i will just run it once the data represents the order from some.

    Eshop imagine it so i have the order id i have a contact email i have some payment method and this is a good example of different data types and i'm going to show you how you can use different functions with this data so um i also i will connect set variable module this is just for testing just to show you how how function works.

    So all the functions you can find here we can have we have here general functions mass functions text functions uh date time and arrays so um let's start with some general functions uh we also have some variables operators and keywords here and of course functions uh the first one variable execution id it's simple it just return you some number i never use it but in case if you.

    Need to collect some statistics about your scenario or you need some unique unique id for sure you can use it uh then we have functions so the first one uh is the parenthesis so this one is you can use it for example when you are doing some mathematical operations and you want just to group uh some numbers some expression uh then we have here the get function the get function it works with.

    Collections and arrays for example we can pick up some specific item from an array for example we have in our data array payment methods and i have a paypal and a gift card so with the help of this function i can say that i want to take this gift card so i am just specifying the array.

    And i want to specify the index uh the the order of the item the second one so once i run it i will just receive a gift card so that's how you can use the get function of course you can use um with the get function some others for example on last our webinar we discussed the get map function so you can check it and see how it works together uh then let's have a look on conditional.

    Functions we have here if empty and switch so this is quite uh very similar if you are using excel functions or some programming languages this is quite uh similar to that functions but a little bit different with the notation um so let's check the if function and let's say that um we have uh what else we have in our data we have in our data the uh total price and imagine if we want to find out the.

    Discount so let's say that i have a customer that spends uh 199 and i want to give them and give him discount like 10 percent so and if it's less than uh 100 i want to give only five percent discount yes so in this case i put it like this i need to provide some condition some expression uh what i want to test so this will be current total price.

    And so i'm saying that uh if my total price will be greater than 100 for example and for this case i need to choose the operator greater than and if it's true if it's yes i will provide 10 percent discount and if it's not then i will provide five percent discount so this is very similar it's only like.

    One if also you can provide some a nested if expression for example

    Uh like if the total price is greater than um like 200 i will provide 20 uh but if it's not i can insert one more if expression inside of the else i would say loop to make it more complicated like this total price it will be.

    More than 100 it will be ten percent and like this and else it will be five percent so this is how you can nest your expression so one more time if the total price is greater than 200 i will provide 20 else i if the total price is greater than 100 i will provide 10 percent and.

    If it's not i will provide just five percent something like that and of course you can uh put down as many if as you want this is something similar that you have in programming if else logic so the next uh we have here is uh if empty this was quite useful if you don't know um which argument which property you are going to expect for example if something will be.

    Empty you can use you can replace it by another property uh for example in my data i do not have uh the company name in the billing address so i would say okay i want to take the company name but if it's empty i will take the full name for example of my customer so easy i would just take the if empty function i will check.

    The company and if company name is empty i will just choose the full name like this and you can see that yes the the company was empty so it just took the full name of my customer so then we have here a switch and switches i would say are the most.

    Complex for example you are testing some expression and you are expecting different type of result and for each of the results you can specify the values that you want to to achieve for example let's say that i have the country code this is for example here the u.s and i wanted to say okay if it's uh so the country name will be united states for example and if it's uh like uh i see that this is the czech republic if it's the it's.

    Germany it's not like a real use case you know but uh for just to show you how this switch function works it's i think it's it's fine so i'm taking the uh code of the country and i'm saying if it's us this is will be united states if it's de it will be germany.

    And if it's see that it will be czech republic and so on you can also put something some default value for example nothing is matched and you can provide and put it like france like this but this is not that use case and probably you will not use it like this but just to show you how the switch function works so we received the us and the united states.

    Also we have different modules um that can also do this job as function do for example we have a module switch and i will show just what is the main difference between functions and some uh regular modules so uh you remember like the this formula this function can be rewritten in this module and this one more time the input will be [Music].

    The country code and we can provide the case for example if it's us the output will be united states and so on and so on but in this case when you are using the regular module you will consume one more one operation and then probably for example if you want to send an email send an email for example like hello uh we have a new customer from and.

    Country so in this case uh in case of the module you will use the output of the switch module but in case of a function you can you can just put it directly in in your gmail module we'll just put something and so you can put it like this and that's all this is quite uh i would say like a messy and sometimes it's not so user friendly especially if you have like a huge.

    Large function but it's nice that you will not consume and your like extra operation okay so let's move to some other functions so also we have here the operators and i would say so like be careful do not use something like do not put um like the equal sign here for example like that always use uh the operators because it's.

    Like the main mistake that people usually do especially if they want for example to multiply or to to add some numbers if you put it like this uh the make will interpret this like a text as you can see here and if you want to make an addition you need to use the operator like this and it's um it's usually with everything that you can see here so do not use like the.

    Equality sign like this do not put anything manually always be careful with the keyboards and with their operators so then we have some omit and big functions and this is more useful for if you have some collections and you have like at least a collection that has uh many properties many keys and you want to pick up or you want to omit some property for example let's try a pick.

    And we have a collection here uh for example billing address and let's say that i want i don't want to take all these data i just want to pick up the first name um let's say i want to pick up the city and i want to pick up the uh zip code and you can see like it was like a huge collection it was like a username.

    The id of the customer the full name but for me probably like in some situations this information is fully enough and in another way you can use the omit function so you can omit uh different keys and everything else will be returned to you so let's move to the math function it's quite like easier if you have some numbers you can make some average number you can find the maximum or minimum you can round the.

    Number to find out the sum of the numbers for example to find the average number like this and you will see the result uh then you can use the function parse number this is uh uh so it parked the string and returned some a number for example there is some difference some system except the comma is a separator some system they are accepting only dot so if you need to.

    Pass this number and to modify it you can you can use this function uh then we have the format number um so one more time it's just um format number in if if you need some decimal separator insert or if you want to uh to add some decimal points to to the number uh then we have here some operators so one more time don't put it manually use the operators to use multiplication uh division mode.

    Uh some addition and something for maybe conditions like uh lower than uh lower than or equal i think that's all for some mass functions so the main mistake that people always do this with these operations and also i will to show you how you can test um if actually it's a number because sometimes you are taking some uh variable and you don't know if it's a text if it's a string of its number and.

    What can you do you can use the for example average function and if you write some text inside you will receive an empty empty string so in this way you can check if it's a number or not because once you put for example um any number only one for sure you will receive some uh some result but it will not be empty as with some text you can also use variables here we have a pi and random number in case if you want to.

    Generate just some random number and use it in different systems but i think it's pretty simple with mass functions so we can we can actually move on to uh to text functions so this is more complicated and more i would say useful uh to use different if you want to operate with the text if you receive something and you want to modify your text and to send to another system so again we have some uid i never use it.

    And we have different functions so the first one we have a length so this is quite easy um you can just um put something and find out uh what is the length of your uh text how many symbols it has uh then we have different quantification you know something like to to put it like to lowercase to capitalize it uh to put your text in uppercase and this is quite also like.

    Quite simple uh the only difference um i i think it could be a problem uh to understand what is capitalized and star case and let's just um check how it works because it's a little bit strange on the names so capitalize it converts only the first character in a text uh to uppercase but in case if you have all uh characters in uppercase it will not do nothing uh if you want to do.

    That like to convert your uppercase uh to star case meaning like one letter is uppercase and another is lowercase you need to use the star case if so we can also like check it so capitalize will always take the first letter up and let's see what do we have here so we can test um [Music] for example the contact email.

    I will show you so you can see it just took the first letter and just make it uppercase and and the star case for example let's take something that we have in uppercase uh like the currency and you will see that we have is in uppercase fully but uh when i put it in star case it will put only one uh first letter to uppercase and the rest in lowercase.

    So then we have ascii function this is this will eliminate will remove all known ascii characters uh this is quite useful if because sometimes um system systems will not accept uh some other characters than ascii so for example this so you have some check letters and this letters will be eliminated will be removed uh the replace function quite easy.

    You can provide some text and replace it for example let's take the the customer full name um what do we have here like this but uh bob norman and we want to replace bob with joe for example and you can see how it was replaced.

    Then we have function uh dream so this will basically remove all space character at start and the end of the text uh this will not remove space characters uh inside attacks so be careful with that only at the start and at the time so again the uppercase quite simple so the substring this is very powerful function i use it a lot uh so this will actually like cut your text and return a portion of the text the ones that you defined.

    So let's say that for example i want to take uh for my contact email i want to take only the make.com i will show you later how you can make it dynamically but in this case i won't just show you how you can operate with the indexes so i have my contact email and i want to take onlymake.com so i need to uh to calculate uh the um on the characters for example one two.

    DISCLAIMER: In this description contains affiliate links, which means that if you click on one of the product links, I'll receive a small commission. This helps support the channel and allows us to continuetomake videos like this. All Content Responsibility lies with the Channel Producer. For Download, see The Author's channel. The content of this Post was transcribed from the Channel: https://www.youtube.com/watch?v=U9LbLp2VQvs
Previous Post Next Post