Is it possible to use REST to print attachments with a button in Kinetic, without DocStar? I.e. In the Kinetic Customer Shipment Entry window, add a “Print Attachments” button where the event workflow prints all line items’ Instruction doc type attachments to a specific printer… Has anyone done something similar?
Sure just invoke a server side function and ahve the function do the priting work. You’ll have to figure out the Printer settings and such either hard coded or per user or “server side” printer setup.
ce.BO.AttachmentSvc/UploadFile
{"HttpStatus":403,"ReasonPhrase":"REST API Exception","ErrorMessage":"Access denied (Ice.BO.Attachment).\r\n\r\nContact your System Administrator to ensure you have access.","ErrorType":"System.UnauthorizedAccessException"}
Notice: Undefined property: stdClass::$ds in C:\xampp\htdocs\LoadPlanning\index.php on line 43
Ice.BO.XFileRefSvc/XFileRefs
{"HttpStatus":403,"ReasonPhrase":"REST API Exception","ErrorMessage":"Access denied (Ice.BO.XFileRef).\r\n\r\nContact your System Administrator to ensure you have access.","ErrorType":"System.UnauthorizedAccessException"}
Notice: Undefined property: stdClass::$XFileRefNum in C:\xampp\htdocs\LoadPlanning\index.php on line 57
Notice: Undefined property: stdClass::$XFileName in C:\xampp\htdocs\LoadPlanning\index.php on line 58
Ice.BO.UD100Svc/UD100Attchs
{"HttpStatus":404,"ReasonPhrase":"REST API Exception","ErrorMessage":"OData path is undefined for the request https:\/\/epicor.teagle.local\/erp10test\/api\/v1\/Ice.BO.UD100Svc\/UD103Attchs?api-key=kM6cKTGiooHTAUkYYCfkPOUbfb8hdj3dWzvJSdRUXbftt","ErrorType":"Epicor.RESTApi.ErrorHandling.ApiException"
Ice.BO.UD100Svc/UD100Attchs
{"odata.error":{"code":"","message":{"lang":"en-US","value":"The request is invalid."},"innererror":{"message":"entity : Cannot convert a primitive value to the expected type 'Edm.Guid'. See the inner exception for more details.\r\n","type":"","stacktrace":""}}}