Skip to main content

FSM6 U16,

 

If i add a new Request Attachment, it fails to sync the REQUEST_ATTACHMENT record with the error of not all primary key information is present:

{“update_request_attachment”:{“request_attachment”:{“request_id”:”123456”,”insert”:””}}}

 

I open the attachment widget with the following script (NOTE: I open the widget for Task Attachments in a similar way and that worsk perfectly):

 

var varRequestID=getControlValue("request","request_id");

executeScript("CLEAR_ATTACHMENT_WIDGET_CACHE");
setCache("AttachmentWidget__ParentTable", "request");
setCache("AttachmentWidget__LinkTable", "request_attachment");
setCache("AttachmentWidget__KeyName1", "request_id");
setCache("AttachmentWidget__KeyValue1", varRequestID);
openAttachmentWidget("BaseAttachmentList", "BaseAttachmentCard", "request", "request_id");

 

Any clues as to why i am getting the error?

 

Be the first to reply!

Reply