push_pin
lock
Error Message and empty Ticket created if Ticket Category changed to the limited Category which he has not Access?
Hi, We have in CS three separate Categories A, B, C for our both separated Support Teams A and B. Category B has 'Only Member has Access', and only Teams B User are the Member in this category; Category A has not this Limit. In the User role, the Teams A User can read/edit all requests, the Teams B User can only read/edit Requests in own Categories. If Teams B need 2-Level Supports from Teams A, he can change Ticket to Category C, it's the Under-Category of B and all User of Teams A and B are the Member of this Category. With this Configuration it works fine, both Teams get separated Visibilities and access to their Tickets in separated Categories and get common Access to the Tickets in Category C for 2nd-Level Support in our one Ticketsystem. Now the Isses is, if Teams A User find that Ticket is not for his Teams and changed to Category B which he has not Visibility, it raised up an Error Message: and it created a new empty Ticket, only filled Field are Ticket ID and created Time at current Time. I asked our SO Local Suppprt Teams to check that Error Message and see more information: An exception occurred in script: "Service: Saving a request: Message for closing Tickets" at: line 97, char 7 Original exception: DbODBC::FatalException at , line 97, char 7 An exception occurred in script: "Screen: Edit ticket 80 copy, Button: ok" at: line 138, char 16 Original exception: EjScript::RunTimeException i have checked both Scripts. By crm-scripts for Trigger 'Saving a request', the error message was caused by t.save(). I know in this Trigger we don't need this code to save a Ticket, but without this, the set Value of user-defined Fields (UDF) will not be saved to the current Tickets. By Scripts to OK-Button for Screen of Edit-Ticket, the Error Message was caused by red-arrow indicated code. I know all UDFs will be saved in default code: t.setValue(se.getField(0), extraField.toString()); But for some UDFs related to Tables i have set separated in the Screen, because I set special Simple Value to get limited Results of Output of the UDF related Tables. That means, i need both codes in Scripts which caused the Error message. Now the question is, how could i optmize the Scripts to avoid this Issues with Error Message and new created empty tickets by User changed Ticket to Category with limited Access which he dos not have? The correct Output instead of that Error Message after this Changing should be for that User sth. like: You have no rights to access this Ticket. Many thanks!
16 h, 33 m ago | 01:27 PM