You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Set Custom Attribute on Incident

Received Response
edited May 24, 2017 12:33PM in UI Extensibility 4 comments


Hi all,

I have to set a custom attribute on an incident different from the one openned on the workspace. I mean, I have the incident id and need to set a custom attribute value.

I already set fields, like Status, on this incident using the following code: 

Incident inc2 = new Incident();
                                    inc2.ID = new ID { id = Convert.ToInt32(val), idSpecified = true }; //val is the incident id
                                    inc2.StatusWithType = new StatusWithType();
                                    inc2.StatusWithType.Status = new NamedID();
                                    inc2.StatusWithType.Status.ID = new ID { id = 132, idSpecified = true };
                                    Service.Instance.UpdateRNObjects(new RNObject[] { inc2 }, "Update", true, true);

        public void UpdateRNObjects(RNObject[] objs, string appId, bool suppressExternalEvents = false, bool suppressRules = false)

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!