When user creates problem from an incident form it should auto populate field values

Gayathree Seeth
Tera Expert

We have created new field called TYPE in the problem form which has two values 

* proactive

*reactive

Now when we create problem from an incident form then it should auto populate with the value "proactive".

Suggest some ideas!!

1 ACCEPTED SOLUTION

Hi @Gayathree Seeth 

 

Actually is way simpler then i thought in this case. You just need to add 4 marked below lines. Of course change fieldname and value 🙂

KamilSmusz_0-1680102561609.png

 

View solution in original post

9 REPLIES 9

Kamil Smusz
Kilo Sage

Hi,

 

If this field is also in Incident table you can add fieldname to this property com.snc.problem.create_from_incident.attributes 

If field is not in incident table you can create BEFORE Business Rule triggered on Insert and you can check in code if there is related INC with this problem, if it is update Type field

Gayathree Seeth
Tera Expert

This field is not in the incident form. This field is to rate the problem record so we need to show whether it is proactive or reactive.

Hence if we are creating problem through this approach then it should populate as "proactive" in the type field.

If i good understand you are using "Create Problem" UI actions right?
So you can update it with server side action which will update this field on problem record.

Gayathree Seeth
Tera Expert

GayathreeSeeth_1-1680101372703.png

 

Hi Kamil,

This is the UI action code. 

Could you please suggest with the code is to be added.

Thanks,

Gayathree S