With the Automation Center’s Custom Script action option, you can either upload a Node.js package (ZIP or folder) or directly write Node.js code when creating automations in the Automation Center. This provides more flexibility and autonomy, and enables you to test and deploy custom logic or integrations quickly and safely without using a third-party integration software like Workato.
The custom script action option is not visible by default. If you are interested in using the Custom Script action, reach out to your Fountain Customer Success contact or [email protected] to enable it in your account.
Create a Custom Script Automation
To create a custom script automation rule, follow the steps below:
Click your company logo in the bottom left corner. Then click Settings.
Click the Automations tile. If you do not see this tile, reach out to your Fountain Customer Success contact or [email protected] to enable the Automation Center in your account.
Click +Add Automation in the top right corner.
On the right, type a title and optional description for the automation rule.
In the Source section, click Choose. Then select either Applicant Events or Worker Events in the dropdown based on whether you want the automation to occur based on an applicant or worker initial event.
In the Triggers or filters section, click +Add.
Choose the condition(s), also called triggers.
For applicant initial event rules, you will select from options like when an applicant attribute changes, when a document is signed, or when an applicant stage changes.
For worker initial event rules, you will select from a number of options like when a worker's attribute changes, when a worker is created, when a worker is deleted, or when a worker status changes.
You can add additional layers of conditions by clicking +Add condition.
Click Apply.
You can change the way the rule will function by changing the AND to OR. This will look at multiple conditions on either an AND or OR basis. This can help you essentially build two rules within one rule!
You can also choose to add more conditions or a subgroup by clicking +Add:
Adding conditions: Provides the flexibility to add as many conditions to your rule as needed.
Adding subgroups: Subgroups are used if you want to have both AND/OR operators in your rule.
Click Choose an action.
Select the Custom script action type.
Select Code to type in the code directly. Select Package to import files.
For example scripts, click Read documentation.
Click Apply.
Click Activate on the right.
Customer Examples:
Used to replace special characters in a worker's name to avoid HRIS errors when the worker's information is sent to the HRIS system.
Used to update applicant attributes when a document provided as part of a Compliance Requirement's status changes
Used to add additional information into a Worker's Profile from another source like an HRIS or an older profile in Fountain that belongs to the same person.
Related Articles
➡️ Other Automation Center articles: