0 votes
in Rock by TinaStephens (8.6k points)
edited

I have a workflow attached to a First time student entry block. A notification email goes to the "person to notify" but I've been unable to add a link to the students profile. How do I do that?

This is an example from 5 point church https://rock.5pointchurch.com/page/136?WorkflowTypeId=133

1 Answer

0 votes
by TinaStephens (8.6k points)
edited
 
Best answer

You need to pull the entity into the workflow. Add a workflow attribute-enter image description here

Then Add an action to set the student ID. The lava in the screenshot is:

{% assign allStudent = Workflow | Attribute:'StudentIds','RawValue' | Split:',' %}

{% for Student in allStudents %}{{ Students }}{% break %}{% endfor %}

enter image description here

Then in the notification email action add this lava:

Link to Student's Profile in Rock: <a href="{{ 'Global' | Attribute:'InternalApplicationRoot' }}Person/{{ Workflow | Attribute:'Student', 'Id' }}">Student</a><br/>

which will add a link to the students profile.

*Content for the lava was provided by Mark Lee.

Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...