Service Operations Workspace - Custom Page to create the Record (REQ/INC)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hello, due to the business need we are not able to utilize the OOTB Create Request actions via the SOW ( to create the RITM )
we needed to build the custom page in order to create the RITM/INC, honestly its working as expected, but the problem that we are facing is related to SOW and to clarify its related to the "comunication" between tabs ( POST Message)
$window.parent.postMessage({
msg:'TARGET_RECORD_SELECTED',
target_number: c.data.request.requestItems[0].number,
target_table: 'sc_req_item',
target_sys_id: c.data.request.requestItems[0].sys_id
}, location.origin);
the issue is related to the Page that was build in order to make it working "Disable sandbox" is set to false- > a lot of errors are comming: ( Access to XMLHttpRequest at 'https://instnace/api/now/sp/page?id=req_wizard&sys_class_name%2Fsc_cat_item%2Fsysparm_interaction%2F...' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.)
the page does not even load due to the all of the errors wit hthe lack of access...
can this be sorted by CORS Rules ? ( the Origin is the same anyways ...) - have played with it with no luck( some help? )
when disabling sandbox - page loads, we are able to submit the request etc but POST Message does not work due to the Disabling sandbox
the other way is
"$window.parent.location.href = "/now/sow/record/interaction/" + c.data.request.interaction + "/sub/record/sc_req_item/" + c.data.request.requestItems[0].sys_id;"
but into the SOW it doesnt make sense as it will cause the pae reloads so the agents might lost the unsaved data on the other tabs. ...
is there any way to get this sorted?