Pushing Inspection creation event to NSQ


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11167]"},{"Key":"InspectionUID", "Value":"I\/KURA\/FD1\/DII\/26\/00005"},{"Key":"Name", "Value":"scheduling"},{"Key":"Type", "Value":"Daily Inspections"},{"Key":"Site", "Value":"Morgan's Point Resort"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"Gary Bhatia"},{"Key":"CreatedOn", "Value":"30-Mar-2026 08:00:20 PM"},{"Key":"InspectionId", "Value":"14457"},{"Key":"OrganisationId", "Value":258}]}


[INSPECTION] No inspection reminders to process


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection/14457


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Module/29/Entity/14457/tasks


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection/14457/Comments


Request URL : https://api-sandbox.oqsha.com/Organisations/258/InspectionType/610


Request URL : https://api-sandbox.oqsha.com/Organisations/258/InspectionStatus


Request URL : https://api-sandbox.oqsha.com/Assets/AssetTypes?OrgId=258&SortingOrder=Asc&SortingColumn=Name&userId=11127


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Departments?SiteId=831&SortingColumn=Name&SortingOrder=Asc


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Assets/DropDown


Request Body : {"AssetTypeId":236,"SiteId":831,"CompanyId":1670}


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=Inspections&siteId=831&AssetTypeId=236&roleId=475&roleId=477


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=258


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/258


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Resources/package-features-eng


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Users/10313


Request URL : https://api-sandbox.oqsha.com/Organisation/258/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Modules


Request URL : https://api-sandbox.oqsha.com/Organisations/258


Request URL : https://api-sandbox.oqsha.com/Organisations/258/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Company/All?&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Departments?SiteIds=833&SiteIds=840&SiteIds=831&SiteIds=834


Request URL : https://api-sandbox.oqsha.com/Users


Request Body : {"OrgId":[258],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request Body : {"OrgId":[258],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"judge"}


Request URL : https://api-sandbox.oqsha.com/Resources/app-language-eng?orgId=258


Request URL : https://api-sandbox.oqsha.com/Modules/APIs


Request URL : https://api-sandbox.oqsha.com/Modules/Version/All?Appversion=5.12.0


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/258


Request URL : https://api-sandbox.oqsha.com/Incidents


Request URL : https://api-sandbox.oqsha.com/Organisations/258/TicketStatus/Counts


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&IsLatestVersion=true&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&Version=5.12.0&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/Organisations/258/InspectionStatus


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspections/Feed?seeAllInspections=0&FromDate=2026-03-23&ToDate=2026-04-06


Request URL : https://api-sandbox.oqsha.com/Organisation/258/InspectionType/All


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=app-Inspection


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection/14457


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Module/29/Entity/14457/tasks


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection/14457/Comments


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Departments?SortingColumn=Name&SortingOrder=Asc


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Inspection/14457


[INSPECTION] No reminders provided. Deleting existing reminders for inspection: 14457


Request URL : https://api-sandbox.oqsha.com/Organisations/258/statuses


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=app-Tasks&siteId=831


Request URL : https://api-sandbox.oqsha.com/Organisations/258/TaskCategories/DropDown


Request Body : {"SiteId":[831],"Source":"User"}


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Tasks


Request Body : {"TaskStatus":376,"SaveStatus":2,"CheckListData":[],"RemindersConfig":[],"InvestigationId":null,"InspectionId":14457,"SectionId":1,"SiteId":831,"TaskCategoryId":"","AssetIds":[],"TaskDetails":[{"TaskDescription":"scheduling - Bay-A (Sand Yard area) - 1.Appropriate respirators used by workers to prevent silica dust inhalation.\n\nAT 1","Priority":2,"DueDate":"2026-03-30T18:30:00.000Z","AssigneeIds":[10313],"Attachments":[]}]}


[CreateTask] Started for OrgId: 258


[CreateTask] Step 1 - Initial setup: 0ms


[CreateTask] Step 2 - Fetch organization: 3ms


[CreateTask] Step 3 - Get task module ID: 2ms


[CreateTask] Step 4 - Fetch organization preferences: 4ms


[CreateTask] Step 6 - Begin transaction: 2ms


[CreateTask] Processing SiteId: 831


[CreateTask] Step 7 - Validate input for SiteId 831: 1ms


[CreateTask] Step 8 - Create task object: 0ms


[CreateTask] Step 9 - Fetch site and module details: 1ms


[CreateTask] Step 10 - Determine task category: 1ms


[CreateTask] Step 11 - Get task category short code: 1ms


[CreateTask] Step 12 - Generate task UID: 4ms


[CreateTask] Step 13 - Insert task into database (TaskId: 11164): 1ms


[CreateTask] Step 14 - Associate PSSR: 0ms


[CreateTask] Step 15 - Parse task association flag: 0ms


[CreateTask] Step 16 - Associate MOC: 0ms


[CreateTask] Step 17 - Associate Audit: 0ms


[CreateTask] Step 18 - Associate HIRA: 0ms


[CreateTask] Step 19 - Associate Investigation: 0ms


[CreateTask] Step 20 - Associate Ticket: 0ms


[CreateTask] Step 21 - Process checklist data: 0ms


[CreateTask] Step 22 - Insert assignees: 0ms


[CreateTask] Step 23 - Process asset IDs: 0ms


[CreateTask] Step 25 - Process child task details: 122ms


[CreateTask] Step 26 - Send assignee notifications: 2ms


[CreateTask] Step 28 - Fetch assignees and log audit: 72ms


[CreateTask] Total time for SiteId 831: 372ms


[CreateTask] Step 29 - Commit transaction: 24ms


[CreateTask] Step 30 - Send status update emails: 1ms


[CreateTask] Completed successfully for OrgId: 258. Total execution time: 419ms


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Task/UploadAttachments


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection/14457


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Module/29/Entity/14457/tasks


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection/14457/Comments


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Inspection/14457


[INSPECTION] No reminders provided. Deleting existing reminders for inspection: 14457


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=app-Tasks&siteId=831


Request URL : https://api-sandbox.oqsha.com/Organisations/258/TaskCategories/DropDown


Request URL : https://api-sandbox.oqsha.com/Organisations/258/statuses


Request Body : {"SiteId":[831],"Source":"User"}


Request URL : https://api-sandbox.oqsha.com/Organisations/258


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspections


Request URL : https://api-sandbox.oqsha.com/Organisation/258/InspectionType/All?SortingColumn=InspectionType&SortingOrder=asc


Request Body : {"OrgId":[258],"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["InspectionStatus"],"SortingOrder":["desc"],"FromDate":"2026-03-30","ToDate":"2026-03-30"}


Request URL : https://api-sandbox.oqsha.com/Organisations/258/InspectionStatus


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=Inspections&siteId=833


Request URL : https://api-sandbox.oqsha.com/Organisation/258/UserDetails


Request URL : https://api-sandbox.oqsha.com/Assets/AssetTypes?orgId=258&SortingOrder=asc&SortingColumn=Name&userId=11139


Request URL : https://api-sandbox.oqsha.com/Organisations/258/ProcessLists


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=833


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=Inspections&siteId=833&roleId=475&roleId=477


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Assets/Dropdown


Request Body : {"AssetTypeId":236,"SiteId":833,"CompanyId":1670}


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=Inspections&siteId=833&AssetTypeId=236&roleId=475&roleId=477


Request URL : https://api-sandbox.oqsha.com/Organisation/258/InspectionType/All?SortingColumn=InspectionType&SortingOrder=asc&siteId=833&AssetTypeId=236


Request URL : https://api-sandbox.oqsha.com/Organisations/258/InspectionType/609


Request URL : https://api-sandbox.oqsha.com/Organisations/258/InspectionFileUpload


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Inspection/14457


[INSPECTION] No reminders provided. Deleting existing reminders for inspection: 14457


Request URL : https://api-sandbox.oqsha.com/Organisation/258/Users/DropDown?ModuleName=app-Tasks&siteId=831


Request URL : https://api-sandbox.oqsha.com/Organisations/258/statuses


Request URL : https://api-sandbox.oqsha.com/Organisations/258/TaskCategories/DropDown


Request Body : {"SiteId":[831],"Source":"User"}


Request URL : https://api-sandbox.oqsha.com/Organisations/258/Inspection