Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Web-API and GUI Rules

SOLVED
Go to solution
Highlighted
Juan Paulini
Super Collector

Web-API and GUI Rules

Hi all,

I'm trying to update an WO, and I expect that filling the closure code, the WO change their status (it's implemented by a GUI rule). It does not work.

Does the GUI rules run if I'm using the webapi for updating any object?

If they don't, can I execute a rule calling it from de web-api? How can I do that?

Thanks in advance.
3 REPLIES
George M. Meneg
Honored Contributor
Solution

Re: Web-API and GUI Rules

Hello Juan,

If "Closure Code" is required field for "Closed" Status you cannot do much. UI rules are not triggered by web-api and though DB rules are, they will not be fired because an item that lacks a required field cannot be saved.

I suggest to set also the closure code from the web api when you set status to closed.
menes fhtagn
Mariano Bonina
Regular Collector

Re: Web-API and GUI Rules

Juan, las UI rules se ejecutan cuando estas usando el cliente de Service Desk.
Si queres que un campo se actualize como conscecuencia de otro que se modifico por una accion externa, en tu caso una web-api, tenes que hacerlo con un DB rule.

Saludos

Juan Paulini
Super Collector

Re: Web-API and GUI Rules

Well, now I realized that I have to use a DB rule or set all the fields by web-api setter methods.

Thanks George and Mariano for your replies.

//Add this to "OnDomLoad" event