Change the state to a new reques

Harold Hoyos
Tera Contributor

I need to change the state to a request when this has been created, for example when this is created the state is new

HaroldHoyos_0-1713910391306.png

if I wanna the change the state to another, How can I do it?

2 ACCEPTED SOLUTIONS

So you are not using out of the box states? Anyway this is as simple as a before insert business rule on the sc_req_item table as I mentioned previously.

  1. When In a list of RITM right click on the list header and choose Configure business rule
    BrianLancaster_0-1714057722722.png
  2. Click new next to business rules
  3. Click advanced checkbox so you can choose before and check the box for insert
    BrianLancaster_1-1714057865490.png
  4. If this is going to happen on all RITMs then leave the conditions blank.
  5. Go to the actions tab and set the state to what ever you want it to be.
    BrianLancaster_2-1714057979379.png

     

  6. Save the business rule and you are all set.

View solution in original post

Ramz
Mega Sage

Hi @Harold Hoyos ,

If you want this to be applied to all the request globally you can set Default value to the state .

Go to state->right click->configure dictionary->in default value -set to the value of state you want

 

Please mark this comment as Correct Answer/Helpful if it helped you.

View solution in original post

8 REPLIES 8

So you are not using out of the box states? Anyway this is as simple as a before insert business rule on the sc_req_item table as I mentioned previously.

  1. When In a list of RITM right click on the list header and choose Configure business rule
    BrianLancaster_0-1714057722722.png
  2. Click new next to business rules
  3. Click advanced checkbox so you can choose before and check the box for insert
    BrianLancaster_1-1714057865490.png
  4. If this is going to happen on all RITMs then leave the conditions blank.
  5. Go to the actions tab and set the state to what ever you want it to be.
    BrianLancaster_2-1714057979379.png

     

  6. Save the business rule and you are all set.

Yes, I tried this and it works fine, thank you!

Ramz
Mega Sage

Hi @Harold Hoyos ,

If you want this to be applied to all the request globally you can set Default value to the state .

Go to state->right click->configure dictionary->in default value -set to the value of state you want

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Yes defiantly another good option.