การจัดการ Oracle CRM On Demand > การจัดการกระบวนการทางธุรกิจ > การตั้งค่าเวิร์กโฟลว์ > Creating Scheduled Events for Analytics
Creating Scheduled Events for Analytics
You can create one or more scheduled events for the Analytics record type and configure one or more Send Email actions on the event to perform the following tasks:
- Execute an Analytics object on behalf of one or more specified users. The Analytics object can be an analysis, a dashboard, or a dashboard page.
- Send the results that are generated for a user to that user as an email attachment.
The specified user's access rights determine the results that are generated for that user.
A scheduled event for the Analytics record type is different from a scheduled event for other record types in the following ways:
- You do not select a list of records for the scheduled event.
- Only the Send Email action is supported.
- On the scheduled event, you add a list of the users on whose behalf the Analytics object is to be executed.
- The Hourly interval type is not available.
A Send Email workflow action for a scheduled event for the Analytics record type is different from a Send Email action for other record types in the following ways:
- You do not specify a recipient for the email that you configure on the action. The emails are sent to the users who are selected on the workflow rule.
- The Send Email action executes an Analytics object, as well as sending the emails with the results to the users.
- You must select the Analytics object that is to be executed, and select the format for the output.
You can create up to a maximum of five Send Email actions on a scheduled event for Analytics. When an instance of the event is executed, all of the actions are performed in sequence for the first user in the list, then all of the actions are performed for the next user, and so on through the list of users.
NOTE: The operations that are performed by workflow actions on scheduled events for the Analytics record type, and the requests and data that are processed by the actions, are counted towards your company's usage against the report services allotments. For information about service allotments, see About Service Allotments. The files that are generated by the workflow actions might also be included in the calculation of the amount of storage used by your company, depending on how long email attachments are retained for your company. The retention period for email attachments is specified in the Email Attachment Expiry (Days) field on the company profile. For more information, see Configuring Company Settings.
Workflow Action Failures
If a workflow action on a scheduled event for the Analytics record type fails for one or more users, then the failure is reported in the Workflow Error Monitor. For more information about what happens when a workflow action on a scheduled event for the Analytics record type fails, see About Workflow Rule and Workflow Action Failures.
Considerations When Scheduling an Event
ข้อควรพิจารณาต่อไปนี้ใช้เมื่อจัดกำหนดการกิจกรรม:
- คุณไม่สามารถระบุเงื่อนไขในกิจกรรมตามกำหนดการได้ อินสแตนซ์ตามกำหนดการของกิจกรรมและการดำเนินการของเวิร์กโฟลว์ในกิจกรรมจะได้รับการดำเนินการเสมอ นอกจากว่าจะมีข้อผิดพลาดเกิดขึ้น
หมายเหตุ: หลังจากเลือกกิจกรรมทริกเกอร์กิจกรรมตามกำหนดการในเพจใหม่ของกฎเวิร์กโฟลว์ เพจจะรีเฟรช ส่วนเงื่อนไขกฎเวิร์กโฟลว์ของเพจจะถูกเอาออก และส่วนรายละเอียดกำหนดการ ซึ่งคุณระบุกำหนดการของกิจกรรมจะพร้อมใช้งาน
- เนื่องจากเหตุผลด้านประสิทธิภาพ ขอแนะนำให้คุณหลีกเลี่ยงการตั้งค่ากิจกรรมตามกำหนดการหลายรายการที่จัดกำหนดการให้ดำเนินการในเวลาเดียวกัน
- คุณต้องระบุวันที่และเวลาเริ่มต้นสำหรับกิจกรรมตามกำหนดการ และคุณต้องระบุวันที่และเวลาสิ้นสุด หรือจำนวนครั้งที่กิจกรรมได้รับการดำเนินการ
หมายเหตุ: Oracle CRM On Demand จะไม่สร้างอินสแตนซ์สำหรับวันที่และเวลาในอดีต แม้ว่าคุณจะระบุวันที่และเวลาเริ่มต้นในอดีต ตัวอย่างเช่น ถ้าคุณระบุวันที่เริ่มต้นเป็น 15 มกราคม 2018 สำหรับกิจกรรมตามกำหนดการที่ทำซ้ำ 10 ครั้งในช่วงเวลาหนึ่งเดือน และถ้าวันที่ปัจจุบันคือ 30 พฤษภาคม 2018 อินสแตนซ์แรกของกิจกรรมจะได้รับการจัดกำหนดการเป็น 15 มิถุนายน 2018 เฉพาะอินสแตนซ์สำหรับการเกิดขึ้นห้ารายการในอนาคตเท่านั้นที่ได้รับการดำเนินการ
- ถ้าคุณระบุให้กิจกรรมตามกำหนดการได้รับการดำเนินการในวันที่หนึ่งๆ ในเดือน และถ้าวันที่นั้นไม่เกิดขึ้นในเดือนที่ระบุ กิจกรรมจะไม่ได้รับการดำเนินการสำหรับเดือนนั้น ตัวอย่างเช่น ถ้าคุณเลือกวันที่ 29 ในเดือน จะไม่มีการดำเนินการกิจกรรมในเดือนกุมภาพันธ์ ยกเว้นว่าปีนั้นเป็นปีอธิกสุรทิน
- You can specify that no email is to be sent to a user if the analysis selected on a Send Email action returns no results for that user. By default, the Send Email if No Results check box is selected on the Send Email action, and the email is sent to all of the users selected on the workflow rule, even if the analysis returns no results for a user. If you deselect the check box, then the email will be sent only to those users for whom the analysis returns results.
NOTE: The Send Email if No Results check box is available only if an analysis is selected on the Send Email action. It is not available if a dashboard or dashboard page is selected on the Send Email action.
If no email is sent to a user because the analysis returned no results for that user, then the workflow action is considered to have failed for that user, and the failure is reported in the workflow error monitor.
TIP: If you want the email to be sent to some users even if the analysis returns no results for those users, but you do not want the email to be sent to other users if the analysis returns no results for them, then you can create two separate scheduled events with Send Email actions to execute the same analysis, but with different sets of users. On the scheduled event with the users to whom you do not want the email to be sent if the analysis returns no results, deselect the Send Email if No Results check box.
The following procedure describes how to create a scheduled event for the Analytics record type.
Before you begin. To perform the following procedure, your user role must have the following privileges:
- Manage Data Rules - Manage Workflow Rules
- Access V3 Analytics
To create a scheduled event for the Analytics record type
- คลิกที่ลิงค์ร่วม การจัดการ ที่มุมขวาบนของเพจใดก็ได้
- ในส่วนการจัดการกระบวนการทางธุรกิจ คลิกที่ การตั้งค่าเวิร์กโฟลว์
- ในเพจกฎเวิร์กโฟลว์ ให้ทำอย่างใดอย่างหนึ่งต่อไปนี้:
- ในการจัดทำกิจกรรมตามกำหนดการใหม่โดยการคัดลอกกิจกรรมที่มีอยู่แล้ว ให้คลิก คัดลอก ในกิจกรรมตามกำหนดการที่คุณต้องการคัดลอก
- ในการจัดทำกิจกรรมตามกำหนดการใหม่ที่ไม่ขึ้นอยู่กับกิจกรรมที่มีอยู่ ให้คลิก ใหม่ ในแถบชื่อ
- ในเพจรายละเอียดกฎเวิร์กโฟลว์ ในส่วนรายละเอียดกฎเวิร์กโฟลว์หลัก ให้ป้อนข้อมูลกิจกรรมตามกำหนดการ
ตารางต่อไปนี้อธิบายฟิลด์
Field
|
Description
|
Workflow Name
|
Enter a unique name, up to 50 characters.
|
Active
|
Use the Active check box to activate or deactivate the scheduled event.
Up to the time that a scheduled event is made active, the Initiated By field on the scheduled event record shows the name of the user who created the scheduled event. The Initiated By field is shown in the Detail page for the scheduled event after the record is saved.
After the Active check box is selected on the scheduled event and the record is saved, the Initiated By field on the record is updated to show the name of the user who selected the Active check box.
The Initiated By field in all pending instances and all error instances for the scheduled event also shows the name of the user who selected the Active check box on the scheduled event.
NOTE: When you make the scheduled event active, an instance is immediately generated for the first scheduled occurrence of the event. As a best practice, set up all of the workflow actions on the scheduled event before you make the event active. Otherwise, if the start time for the scheduled event is near, the first instance might be executed before you have finished setting up the workflow actions.
For more information about what happens when you activate or deactivate a scheduled event, see About Scheduled Events.
|
Description
|
(Optional) Enter additional information about the scheduled event, such as the purpose of the event.
|
Record Type
|
Select Analytics.
|
Trigger Event
|
Only the Scheduled Event trigger event is supported for the Analytics record type.
|
Enable Notification
|
Select this check box if you want Oracle CRM On Demand to send email notifications to the user who made the scheduled event active. If this check box is selected, an email is sent each time an instance of the scheduled event completes successfully, each time an instance of the event fails, and each time a pending instance of the event is deleted.
|
- ในฟิลด์ เวลาและวันที่เริ่มต้น ให้เลือกวันที่และเวลาที่คุณต้องการให้ดำเนินการอินสแตนซ์แรกของกิจกรรมตามกำหนดการ
- ในฟิลด์ เกิดซ้ำ ให้เลือกช่วงเวลาที่คุณต้องการให้กิจกรรมตามกำหนดการเกิดซ้ำ เช่น รายสัปดาห์
- ในฟิลด์ ทุกๆ ให้ตั้งค่าช่วงเวลาสำหรับอินสแตนซ์ที่เกิดซ้ำ ตัวอย่างเช่น ถ้าคุณเลือก รายสัปดาห์ ในฟิลด์ เกิดซ้ำ และถ้าคุณต้องการให้อินสแตนซ์เกิดซ้ำในช่วงเวลาสองสัปดาห์ ให้ใส่ 2 ในฟิลด์ ทุกๆ ค่าขั้นต่ำที่คุณสามารถใส่ได้คือ 1
- ถ้าคุณเลือกรายเดือนในฟิลด์ เกิดซ้ำ คุณจะสามารถเลือกที่จะจัดกำหนดการกิจกรรมตามกำหนดการให้ดำเนินการในวันสุดท้ายของแต่ละเดือนที่มีการดำเนินการกิจกรรมได้ โดยการเลือกช่องทำเครื่องหมาย วันสุดท้ายของเดือน
ตัวอย่างเช่น ถ้าคุณตั้งค่ากิจกรรมตามกำหนดการให้เริ่มต้นวันที่ 23 เมษายน และให้เกิดซ้ำทุกๆ สองเดือน อินสแตนซ์แรกของกิจกรรมจะดำเนินการวันที่ 23 เมษายน อินสแตนซ์ลำดับที่สองจะดำเนินการวันที่ 23 มิถุนายน และอินสแตนซ์ลำดับที่สามจะดำเนินการวันที่ 23 สิงหาคม เป็นต้น อย่างไรก็ตาม ถ้าคุณเลือกช่องทำเครื่องหมาย วันสุดท้ายของเดือน อินสแตนซ์แรกของกิจกรรมจะดำเนินการวันที่ 30 เมษายน อินสแตนซ์ลำดับที่สองจะดำเนินการวันที่ 30 มิถุนายน และอินสแตนซ์ลำดับที่สามจะดำเนินการวันที่ 31 สิงหาคม เป็นต้น
- ระบุจำนวนครั้งที่คุณต้องการให้ดำเนินการกิจกรรมตามกำหนดการ หรือระบุวันที่และเวลาสิ้นสุดโดยทำหนึ่งในสิ่งต่อไปนี้:
- เลือกตัวเลือก หลังจาก แล้วระบุจำนวนครั้งที่ดำเนินการกิจกรรมตามกำหนดการ ค่าที่คุณใส่ต้องมากกว่า 0 (ศูนย์)
- เลือกตัวเลือก ตามวันที่และเวลา แล้วใส่วันที่และเวลาสิ้นสุดสำหรับกิจกรรมตามกำหนดการ วันที่และเวลาสิ้นสุดต้องอยู่หลังจากวันที่และเวลาเริ่มต้น
- บันทึกการเปลี่ยนแปลงของคุณ
Adding Users to Scheduled Events for Analytics
The following procedure describes how to add the list of users on whose behalf the workflow actions on the scheduled event will be executed.
To add a list of users to a scheduled event for Analytics
- On the Workflow Rule Detail page, in the Execute As related information section, click Add.
- In the Lookup window, search for the users for whom you want the workflow rule to execute the workflow actions.
- When you finish selecting users, click OK to close the lookup window.
Creating Send Email Actions for Scheduled Events for Analytics
The following procedure describes how to create a Send Email action for a scheduled event for the Analytics record type.
Before you begin:
- If you want the Send Email action to execute an analysis, then the analysis must be saved in the catalog, in a folder under Shared Folders, and you must have access to the folder. For the action to complete successfully at runtime for a user specified on the scheduled event, that user must also have access to the folder.
- If you want the Send Email action to execute a dashboard or dashboard page:
- The dashboard or dashboard page must be saved in the system-generated Dashboards subfolder directly under /Shared Folders/Company Wide Shared Folder or in the system-generated Dashboards subfolder directly under /Shared Folders/Migrated Company Wide Shared Folder, and you must have access to the dashboard. If the dashboard or dashboard page is stored in the system-generated Dashboards subfolder directly under /Shared Folders/Migrated Company Wide Shared Folder, then you must have the Access Migrated Company Wide Shared Folder privilege.
- For the action to complete successfully at runtime for a user specified on the scheduled event, that user must have access to the dashboard or dashboard page. If the dashboard or dashboard page is stored in the system-generated Dashboards subfolder directly under /Shared Folders/Migrated Company Wide Shared Folder, then the user must have the Access Migrated Company Wide Shared Folder privilege.
- If the name of the analysis, dashboard, or dashboard page that you select on the Send Email action contains any of the following special characters, then the character is replaced with an underscore (_) in the name of the file that is sent to the specified user:
- Asterisk (*)
- Backslash (\)
- Colon (:)
- Comma (,)
- Double quotation marks (")
- Greater than symbol (>)
- Less than symbol (<)
- Question mark (?)
- Slash (/)
- Vertical bar (|)
To create a Send Email action for a scheduled event for the Analytics record type
- In the Workflow Rule Detail page, in the Actions related information section, click Menu and select Send Email.
- In the Workflow Action Edit page, in the Key Action Details section, complete the detail fields for the workflow action.
For information about the Mark for Translation check box, see Creating Workflow Actions: Send Email.
- In the Analytics Content Details section, do the following:
- In the Content Type field, select the type of Analytics object that you want the action to execute.
- In the Content Format field, select the type of output that you want the action to generate.
- (Optional) If the selected Analytics object is an analysis, and if you do not want the email to be sent to a user if the analysis returns no results for that user, then deselect the Send Email if No Results check box.
- Click the Lookup icon for the Content Name Path field to open a pop-up window that displays the catalog.
- Browse to the Analytics object that you want and select it, and then click OK.
- (Optional) In the Parameters field, enter the parameters for the Analytics object.
Specifying the parameters for an Analytics object in a workflow action is similar to specifying the parameters for an analysis or dashboard in a Web applet or Web tab. For more information, see About Specifying Filters for Embedded Reports and Dashboards.
- In the Email Message section, fill in the From, Reply To, Subject, Email Format, and Message Body fields.
For information about these fields, see Creating Workflow Actions: Send Email.
NOTE: If you include fields from the User record type in the email subject or message body, then the fields are populated with the values from the user record of the user on whose behalf the Analytics object is executed.
- Save the workflow action.
NOTE: If the size of a file that is to be attached to an outbound email is not greater than 2 MB, then Oracle CRM On Demand attaches the file to the email. If the size of the file is greater than 2 MB, then Oracle CRM On Demand zips the file. If the size of the zipped file is not greater than 2 MB, then the zipped file is attached to the email. Otherwise, the file is not attached to the email. The users on whose behalf the scheduled event was executed can access the unzipped files, as well as the emails, through their personal email monitor, regardless of whether or not the files were sent with the emails. For information about accessing the personal email monitor, see Accessing Your Pending and Sent Emails. If your user role has the Access Master Audit Trail and Admin Configuration Audit privilege, then you can also access the emails and attachments for all users through the company email monitor. For more information, see Reviewing Your Company's Pending and Sent Emails.
|