Survey notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 02:35 AM
Hi, I have to send a notification to the user if he didnt respond to the survey notification, in 2 days. We use both surveys and am looking for a way to achieve this. Can someone please help me in this?
Ex: Lets say an user's request is resolved. When it is resolved, the out of the box notification will send an email along with survey. If he fails to respond to that survey, I again need to send a new notification (with some added text) to the user asking to complete the survey.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 06:07 AM
Hi Atul,
Here is the scheduled script. I have set the 'assigned to' in the notification and hence not using parm1 or 2 in the eventQueue. Hope that is fine. By the way, I dont really understand the counter concept. I guess I get all the records based on the below statement right. So, why do I need to use counter?
survey.addQuery("sys_created_onRELATIVEGE@dayofweek@ago@2^stateINready,wip");
Thanks,
Dinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 06:16 AM
Dude,
You need to specify the counter because this scheduled job will run every two hours and it will match the counter and it will send a event to the queue hence system will send notification to the user every two hour till the time your condition does not match.
Do you want that ? You want only one time reminder right ? if you want multiple times and make user crazy then go ahead with simple query
In the above script counter will increase and set to the assessment instance table so you will only send to those records whose counter is 0 or 1 not more than one.
I hope you will get the point now.
Regards,
Atul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 06:41 AM
Yeah, I now understand your logic behind that. Thanks for clarifying.
I will add a field and update the script accordingly. Do you see any issue in the existing script now? Hope what I have mentioned in eventQueue is fine for now.
Thanks,
Dinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 09:52 AM
Hi Dinesh,
It looks good to me.
you just need to update the counter field.
1. get the current counter value and then add it +1
2. var counter=current.counter+1;
3. you need to specify the condition while sending the event to the queue like if counter is <=1 so it will not run when counter is greater than 1.
Let me know if you want me to write a code for you. hope this helps. mark helpful if it helps you.
Regards,
Atul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2016 09:38 AM
Hi Atul,
Unfortunately I dont see the email notification for this. What could be the problem?
Thanks,
Dinesh