How to change the Stage of a RITM using UI Action

vidhya_mouli
Giga Sage

I have a requirement. When the Stage of a RITM is in in_progress stage (this is done through a flow), an UI button Ready for Delivery should be available. When user clicks on this button, the stage should move to delivery. I have the following UI action.

 

vidhya_mouli_0-1715244769762.png

 

However, when I click on this button, stage is blank. Why? Any suggestion how to resolve this?  

 

The stage set is:

vidhya_mouli_1-1715244851817.png

 

1 REPLY 1

SumanthDosapati
Mega Sage
Mega Sage

Hi @vidhya_mouli 

 

The script you have written works on client side. If you want to make it server side then write the script outside your changeStage() function.

You can use current object to write server script in ui action.

 

Regards,

Sumanth