Skip to main content

Hello!

I was wondering if you guys can give me a hand here!

I created a Subscription List  It contains a Look up column with 5 Products ( Product A, Product B and so on). When a user wants to get notifications on one or more of the product they can submit a request to Subscribe to Notifications for Products A- E. The form is on a List the user selects which product they want to get notifications on. I have a WF on the Subscription List that Query the List and gets the Product and email group to the product. It needs look for the group in the LDAP and adds the user's name.  This works great if I only have one choice (one product) but I can't figure out how to get it to add to each specific lists.

So John Smith Wants Notifications on Product A, Product B and Product E.  I query the list and then added a for each and within the for each I have a parallel action that has 5 Run If states (Run if Product A = or contains (neither work) in the Product (that I get from Query) if so then add the user to the Product A list.) I can't get it to look in the "Run if" Statement it either doesn't look in the statement or performs the statement when it's not suppose to.   

I tried to have a condition for each Product but that didn't work either. 

The Query Action is as follows Filter ID = ID, Stores Product Name in a Collection Variable, Product Group email in Collect Variable

In the for each take the Collection Product Name Variable and store in a List ID Variable - This didn't work so I added it to Single line of text.

Help!

Hi Melissa,

What your result looks like in your Query List when John Smith wants notification on Product A, B and E?

It is collection, I believe?

So you can iterate on it.

Regards,

Christophe


Thank you for looking at this !!!

Yes

I'm storing it in a collection variable


So you can iterate on it and test on each value

Do not hesitate to log each value and see what it contains


Thanks Christophe Raucq

I was replying to you! And as I was writing it I realize that I my WF was to complicated! So there is how I got it to work!

User Chris selects Product A and C in his subscription submission form That data is Stored In Product List

I then Have a Paraell Action with 5 Run If Statements - One for each Product that says Run if Product List Contains "Product A" if so add to LDAP, I do this for all products. This will add the user to only the product they have selected.  Simple!

There are some problems with this WF because it's very manual and if a product gets added or the name changes then the WF has to be changed instead of it being automated.

Melissa


Reply