What is the difference between server.refresh and server.update in service portal?

abhishekte
Mega Expert

Hello- Could you please explain What is the difference between server.refresh and server.update in service portal? How we can pass custom input to server side from client side?

3 REPLIES 3

Swapnil Bhakar1
Mega Guru

Hi Abhishek,



server.refresh:Calls the server and automatically replaces the current options and data from the server response. Returns Promise.



server.refresh: Calls the server and this.data is automatically send to server side. Returns Promise.



For more info. refer below thread:


Widget Client Script




Regards,


Swapnil



PS: Hit like, Helpful or Correct depending on the impact of the response


Small correction to the above response.

server.refresh:Calls the server and automatically replaces the current options and data from the server response. Returns Promise.

server.update: Calls the server and this.data is automatically send to server side. Returns Promise.

Varsha Jadhav1
Giga Expert

Hi Abhishekh,

Hefer below link.It Will Help you.

https://serviceportal.io/docs/documentation/widget_client_script.md