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

create an Incident with a Product value

Accepted answer
29
Views
7
Comments
edited Jun 7, 2022 12:53PM in General Technical Discussions 7 comments

Content

Hello   can you give me a clarification about how to set a product when submitting an Incident? In standard ProductCategoryInput widget, I saw that the eventObject sent when validating the form is

   formEventObject.data.name = "Incident.Product"
   formEventObject.data.value = 8438  (I have the productID value from another widget)

and then
   RightNow.Event.fire("evt_formFieldValidatePass", formEventObject);

I tried to replicate this behaviour but without success.

I tried also to pass the whole product hierarchy in an array, set the table etc...
   formEventObject.data.table = "Incident";
   formEventObject.data.value = [8025, 8076, 8438];
   formEventObject.data.dataType = "Product";
   formEventObject.data.level = 2;
...

Are these field correctly set? am I forgetting something? Thanks very much for every explanation

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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