Check & Reply with group membership

17 views
Skip to first unread message

Olaolu Abiodun

unread,
Feb 19, 2020, 11:38:20 AM2/19/20
to rapidpro
Hello All,

Your help would be very much appreciated.

I want to pull just the group name for contacts, not the UUID as well in a flow

 

When using @contact.groups, it pulls the name and UUID.

 

There is a variable available for @contact.groups.name but it doesn’t produce anything in the flow when utilized.

Nic Pottier

unread,
Feb 19, 2020, 12:18:13 PM2/19/20
to Olaolu Abiodun, rapidpro

Hi Olaolu,

It’s a bit of a mouthful but you can get the names of the groups a contact is part of using the expression:
@(format(foreach(contact.groups, extract, "name")))

More on those functions here:
https://textit.in/mr/docs/expressions.html

Cheers,

Nic


--
You received this message because you are subscribed to the Google Groups "rapidpro" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro/ab1f2a7d-4434-4a32-8359-1490dfa35114%40googlegroups.com.

Olaolu Abiodun

unread,
Feb 21, 2020, 1:42:30 PM2/21/20
to rapidpro
Thank you!

Olaolu Abiodun

unread,
Feb 21, 2020, 1:51:45 PM2/21/20
to rapidpro
That worked! 

Folow up question. is it possible to join a contact to multiple groups with one response in a flow? When I use has any of the words in "split by expression", it only recognizes  the first response and none of the followup words.

For example, if i had three groups, say "FB", "TWT", "SMS" and each group's keyword to join was it's respective name. if the contact responds with all three in a flow, in order to jin all three groups, only the FB would be recognized (if it was th eone entered first).

Does that make sense?


On Wednesday, February 19, 2020 at 11:38:20 AM UTC-5, Olaolu Abiodun wrote:

Nic Pottier

unread,
Feb 21, 2020, 1:56:03 PM2/21/20
to Olaolu Abiodun, rapidpro
Sure, just have a wait for response that is open ended, save that as a result, then have a split by result for each group.

--
You received this message because you are subscribed to the Google Groups "rapidpro" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro+u...@googlegroups.com.

Olaolu Abiodun

unread,
Mar 13, 2020, 12:59:17 AM3/13/20
to rapidpro
Thank you.


On Friday, February 21, 2020 at 1:56:03 PM UTC-5, Nic Pottier wrote:
Sure, just have a wait for response that is open ended, save that as a result, then have a split by result for each group.

On Fri, Feb 21, 2020 at 10:51 AM Olaolu Abiodun <mro...@gmail.com> wrote:
That worked! 

Folow up question. is it possible to join a contact to multiple groups with one response in a flow? When I use has any of the words in "split by expression", it only recognizes  the first response and none of the followup words.

For example, if i had three groups, say "FB", "TWT", "SMS" and each group's keyword to join was it's respective name. if the contact responds with all three in a flow, in order to jin all three groups, only the FB would be recognized (if it was th eone entered first).

Does that make sense?

On Wednesday, February 19, 2020 at 11:38:20 AM UTC-5, Olaolu Abiodun wrote:
Hello All,

Your help would be very much appreciated.

I want to pull just the group name for contacts, not the UUID as well in a flow

 

When using @contact.groups, it pulls the name and UUID.

 

There is a variable available for @contact.groups.name but it doesn’t produce anything in the flow when utilized.

--
You received this message because you are subscribed to the Google Groups "rapidpro" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages