Configuring multiple guided journeys based on user roles for Redwood Pages
We have a use-case for multiple different Guided Journeys being applicable to a single page, depending on what user roles specific users have.
For example, when creating a New Job Requisition, the Journey flow would be different for an Employment Coordinator (IRC_EMP_CO_JOB_CUSTOM), a Hiring Manager (IRC_HIRING_MANAGER_ABSTRACT_CUSTOM) and one of our Corporate Recruitment staff (IRC_RECRUITER_JOB_CUSTOM). To support this, we have three separate journeys created.
I've set the Guided Journey Code at the page level to be variable depending on which role a user has:
[[ $application.user.roles.includes('IRC_EMP_CO_JOB_CUSTOM') ? 'CREATE_JOB_REQUISITION_EC_PM' : $application.user.roles.includes('IRC_RECRUITER_JOB_CUSTOM') ? 'CREATE_JOB_REQUISITION_CORP_RECRUITER' : $application.user.roles.includes('IRC_HIRING_MANAGER_ABSTRACT_CUSTOM') ? 'CREATE_JOB_REQUISITION_HM' : null ]]