0 Plan Your Visit Workflow-Interacting with people 1 DJ Grick posted 5 Years Ago I want to create a "plan your visit" system that sends people a few text messages before they attend. I was hoping to start this after they complete the family pre-registration form. The issue I am having is taking the Family and returning a person to actually interact with. Does anyone have any insight on this? Has anyone already written a workflow like this that could be shared?
DJ Grick 4 years ago Sorry, I'm so slow at replying back. How do I then take that person ID and convert it to an actual person in the workflow?
Jim Michael 4 years ago I would use a Lava run action pointed at your Person workflow attribute, with this as the Lava:{% assign famgroup = Workflow | Attribute:'FamilyGroup','Object' %}{% assign gmems = famgroup.Members %}{% for gmem in gmems %}{% if gmem.GroupRoleId == 3 %}{% assign adultId = {{gmem.PersonId}} %}{% break %}{% endif %}{% endfor %}{{ adultId | PersonById }}That is just the Lava above with a mergefield to take the resulting adultId variable and pass it to the PersonbyId filter.
DJ Grick 4 years ago Thanks so much for the help but I'm still struggling. Does the note on this come into play?Does https://community.rockrms.com/WorkflowActionCategory?Category=9#setattributevalue"When using this action to set a Workflow attribute of type Person via the Text Value, you must return the GUID of the PersonAlias record, not the GUID of a Person record."
Jim Michael 4 years ago (edited 4 years ago) Oops... yeah, I didn't realize the Person attribute needed a PersonAlias guid... so try this instead:{% assign famgroup = Workflow | Attribute:'FamilyGroup','Object' %}{% assign gmems = famgroup.Members %}{% for gmem in gmems %}{% if gmem.GroupRoleId == 3 %}{{gmem.PersonId | PersonById | Property:'PrimaryAlias.Guid'}}{% break %}{% endif %}{% endfor %}