Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 06:25 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 09:21 PM
Hi,
This is expected behavior.
What I understood from your script is you are inserting task_sla record after sc_task is created and in same BR you are trying to copy the task_sla fields.
As the task_sla record is just inserted and the SLA has not processed so its End Time, Breach time, Duration etc fields should be empty and these values will get updated in task_sla record based on your SLA defination.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:25 AM
what could be the alternative?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:42 AM
Hi Prashant8kumar
Its my understanding that the script successfully populates two fields in the "u_task_sla_m2m" table: "u_start_time" and "u_sla_type." However, the other fields don't seem to be getting populated correctly from the "task_sla" table.
To identify the issue, we need to examine the relationship between "sc_task," "contract_sla," and "task_sla" tables in the ServiceNow instance. It's possible that there is a problem with the query or the data retrieval process.
Exalate could be an option to synchronize data between ServiceNow instances or other systems. It has the capability to get all the records from different tables, including look-up tables. By integrating Exalate, you may be able to streamline data synchronization and ensure that relevant fields in "u_task_sla_m2m" are correctly populated based on data from other tables. I have been using it for quite a while and it works wonders.