Not knowing why someone is not responding to your message can be very impractical, which is why this page will explain how to display an extension to a person’s username, that will be displayed on their profile, in a chat message, or in a stream post.
Steps to create this workflow
- As a first step, we need to build the form that will allow employees to submit their request. Go to the “Dashboard” and click on “Toolbox”, then “Forms”.
- Set up your absence leave request form. We recommend using the date field for the start and end dates of the time off, a short text for the number of days the person will be gone and a single-select for the type of leave. In most cases, you will also want to let employees select their manager when submitting a time-off request. In this case, we recommend building the form with a ‘user select’ field at the end, which will allow your employees to select their manager, and use that input in a later step when defining who should approve the request. It should look like this:
- Make sure that your form is visible: Copy the link of the form by clicking on the Options > Share Form > Get Link and create a new shortcut for your form under Toolbox > Shortcuts in the Dashboard.
- Then, create a custom profile field that will be populated automatically with an out of office message. Go to the Dashboard and select the Settings, then “Profile Fields”.
- Add a new profile field by clicking on “+ Add Profile Field” on the right side. Select the “Text” type.
- Label your new profile field, for example “Availability Status” or “OOO Status”. Visibility should be given to Everyone, and the User should be able to modify it.
- Under Dashboard > Settings > General, scroll down to “Display Name” and then select the placeholder “Availability Status” in the Display Name Extension. That way, the OOO status will be shown in their profile as a display name extension until the person is back from their leave.
- Next, build the automation. Go to the “Dashboard” and click on “Toolbox”, then “Workflows”.
- Click on “Create new Workflow” if this is the first workflow in your tenant or “Add New” if there are already some workflows.
- In the “Workflows settings'' panel enter the workflow name and optionally add a description.
- Then click on the “Add a Trigger” placeholder to add a trigger.
- Select “Form submitted” from the trigger list and click on “Add”.
- Within the panel on the right side, in the field “Form name” select the Form which should trigger the workflow. This is the name of the form you created in the first steps. You can just start typing, and a proposition of forms will pop up. Select the correct form.
- Then click on the “Add an Action”.
- Select an Action: “Get form answer” and click on “Add”. We are going to retrieve the start date of the leave.
- Choose the form you are trying to retrieve a form answer from. In this example, we want to retrieve the form answer to the question “What’s the first date of the leave” from the form ‘Leave Request, so we get the start date as an output in our example. This value is dynamic, meaning that if another user submits a form and selects a different date, then that date will be the output value.
- Repeat the same two steps for the end date of the leave. Select an Action: “Get form answer” and click on “Add”. We are going to retrieve the end date of the leave.
- Repeat the same two steps for the type of leave (e.g. wedding, vacation, training, bereavement, etc.). Select an Action: “Get form answer” and click on “Add”. We are going to retrieve the type of leave.
- Click on the “+” below the action to add the next step.
- Select an Action: “Retrieve user profile data” and click on “Add”.
This step allows to get more information from the selected user’s profile such as: first and last name, role, user email, user name, # of comments, # of likes, # of posts, last activity date, profile creation date…etc. You can reference these fields in the further steps of the workflow, for example to create a dynamic file name or address the chat message or email. - Fill in the fields in the panel on the right side: Beekeeper user ID(s) – Enter the ID of the person who should receive the chat message. To select the ID of the Form Submitter use the Magic Variables on the left or type their name directly.
- Click on the “+” below the action to add the next step.
- Select an Action: “Wait until” and click on “Add”.
- Fill in the field on the right side and select the first “Form Answer” output from the steps above. The first “Form Answer” will be your start date.
- Click on the “+” below the action to add the next step.
- Select an Action: “Update User Profile Field”.
- Fill in the fields on the right side panel:
- User – Enter the ID of the person whose profile should be updated. To select the ID of the Form Submitter use the Magic Variables on the left or type their name directly.
- Field name – Select the profile field name that should be changed. In our example, it is called “Availability Status”.
- Field value – Choose what should be displayed in the Availability Status profile field of the user. We recommend for example: “On {{Answer}} until {{Answer}}”, the first {{Answer}} variable being the Type of Leave that we retrieved higher up, and the second {{Answer}} being the end date of their leave.
- [Optional] If you want to send a chat message to confirm to the user that their availability status has been updated, you can do so by clicking on the “+” below the action to add the next step.
- Fill out the fields on the right:
- Send to – Enter the ID of the person who should receive the chat message. To select the ID of the Form Submitter use the Magic Variables on the left or type their name directly.
- Message – Draft your message. You could write something like “Your availability status has been updated in your profile.”
- Click on the “+” below the action to add the next step.
- Select an Action: “Wait until” and click on “Add”.
- Fill in the field on the right side and select the second “Form Answer” output from the steps above. The second “Form Answer” will be your end date this time.
- Click on the “+” below the action to add the next step.
- Select an Action: “Update User Profile Field”.
- Fill in the fields on the right side panel:
- User – Enter the ID of the person whose profile should be updated. To select the ID of the Form Submitter use the Magic Variables on the left or type their name directly.
- Field name – Select the profile field name that should be changed. In our example, it is called “Availability Status”.
- Field value – Leave it empty, so that the profile field will be updated as soon as the person is back from their leave.
- [Optional] If you want to send a chat message to confirm to the user that their availability status has been updated, you can do so by clicking on the “+” below the action to add the next step.
- Fill out the fields on the right:
- Send to – Enter the ID of the person who should receive the chat message. To select the ID of the Form Submitter use the Magic Variables on the left or type their name directly.
- Message – Draft your message. You could write something like “Your availability status has been updated in your profile.”
- Validate and save your workflow. Now that your entire workflow is ready you can validate the trigger and each action and save if everything is correct. The system will not let you save the workflows in case something is missing or not correct. Correctly updated trigger and actions will have a green checkmark, while incorrectly updated trigger or actions will have a red cross and the field which is not updated will be highlighted in red.
- When the trigger and all actions have a green checkmark, you can save the workflow.
- Flip the toggle to activate the workflow.
Comments
0 comments
Please sign in to leave a comment.