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

Chaining between Incident and a Custom Object API SOAP

Question
24
Views
0
Comments
edited Jun 8, 2022 12:06PM in General Technical Discussions

Content

Greetings,

I am trying create a Custom Object and a Incident using Chaining and Batch.

When I create the Custom Object, I write the following lines:

ChainSourceID _chainPolizaID = new ChainSourceID();
_chainPolizaID.setVariableName("Poliza");

c.setID(_chainPolizaID);

 

Then, I try to create the Incident, and I don'w know how do the relation for Chaining.

I try with this code:

List<GenericField> fields = new ArrayList<GenericField>();

....

GenericField poliza = this.createGenericField("id_poliza", this.createNamedIDChainDataValue("Poliza"), DataTypeEnum.NAMED_ID);
fields.add(this.makeGenericField(poliza));

where function makeGenericField is defined as:

private GenericField makeGenericField(GenericField genericField){
        GenericObject go2 = new GenericObject();        
        RNObjectType objType2 = new RNObjectType();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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