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

Brian Lancaster
Tera Sage

You can do this via a business rule. It should be a before insert. The first tab should be the conditions which can be left blank if it is for all requests or you can add conditions for specific ones. The second tab you can choose the state and what you want to change it to.

Harold Hoyos
Tera Contributor

I'm trying this bussines rule in my PDI

HaroldHoyos_0-1713937969340.png

(I think that it need a "When to run" but I don't know what it's will be)

HaroldHoyos_1-1713938121510.png

 

 

And it show me this Alert

HaroldHoyos_2-1713938161313.png

 

swathisarang98
Giga Sage
Giga Sage

Hi @Harold Hoyos ,

 

Could you please let me know the exact requirement and on which table you are trying to achieve this ?

 

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

Regards,

Swathi Sarang

The table is sc_req_item and I need change the state when a request has been created, default is "New", But I want change it to another