- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017 01:30 PM
My customer wants to send out surveys two weeks after the state is closed complete. I have a field whose value is 14 days from the closed complete date so I can query all the records daily to see if there are any matching records with today's date. I just am not sure how to trigger the creation of survey instances and send out the invites from a scheduled job. Any help is appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017 01:57 PM
Hi Angie,
Try below -
new SNC.AssessmentCreation()).createAssessments('sys id of survey instance');
Thanks.
PS: Hit like, Helpful, Correct and Endorse, if it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017 02:04 PM
Okay. I will try that. I assume I need to pass in the assigned to, due date, etc. that is required in the assessment instances table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017 02:26 PM
That worked great! I just had to pass in the user and the survey id. Thanks! You saved me a lot of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 07:45 PM
Hi where and how did you pass the userid? I am trying to create the survey instance record using
new SNC.AssessmentCreation()).createAssessments('sys id of survey instance', 'user to which survey should be sent');
but this is not working. Am I missing anything?