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

SOAP API: Custom Object parent of Incident

Received Response
28
Views
1
Comments
edited Jun 8, 2022 12:02PM in General Technical Discussions 1 comment

Content

Hi all, 

I have a custom object (called Poliza) set up as a parent of Incident. 

In Incident I have a CO.id_poliza for relationship, also, I have some Custom Fields in Incident.

I am saving at Incident's fields, Incident's Custom Fields excepts Incident's Custom Object.

How I can access a relation field into Incident (CO.id_poliza)?

 

 

Version

August 2015

Code Snippet

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

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

GenericObject genericIncident = new GenericObject();
		RNObjectType incObjectType = new RNObjectType();
		incObjectType.setTypeName("Incident");
		genericIncident.setObjectType(incObjectType);	

genericIncident.setGenericFields(fields.toArray(new GenericField[fields.size()]));	
inc.setCustomFields(genericIncident);


 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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