How to send notification to users in a variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2015 05:37 AM
Hi All,
Can anyone please let me know how to send the notification to the users in variable?
Let's share my scenario
I have one variable 'x' on a variable form ,x contains 10 user id's. Now I need to send a notification to the 10 members who are there in 'x'.
Can anyone please suggest.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2016 08:55 PM
Hi Jim,
For reference variable, Try
Assuming you'r workflow on catalog item then it should be
var answer = [];
answer.push(current.variables.VARIABLENAME); //Here replace VARIABLENAME with the exact name of the catalog variable
If above case is not true i.e for normal tables then it should be
var answer = [];
answer.push(current.COLUMN NAME OF THE FIELD); //Here replace COLUMN NAME OF THE FIELD) with the exact name of the catalog variable
P.S : Click on advanced checkbox on approval user activity to see the script box in workflow.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2016 08:57 PM
Create a notification activity and check the advanced checkbox , and put this in the script
answer=current.variables.<your variable_name>.toString();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2016 09:00 PM
Hi Abhinay,
I'm not doing this from a workflow. Would your script need to go in a mail scrip in that case?
Thanks,
Adam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2016 09:03 PM
Yes, what table is your notification on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2016 09:06 PM
sc_req_item.