cancel
Showing results for 
Search instead for 
Did you mean: 

Main Ticket Field in PDI

mracantonius
Explorer
451

Hi,

Good day!

Do you know what's the field name in PDI for the Main Ticket field? I need to populate this for a custom code that automatically creates sub-tickets:

Accepted Solutions (1)

Accepted Solutions (1)

ThiagoSarmento
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear marchirang,

This field is located on ServiceRequest BO, under Root.ParentServiceRequestReference.BusinessTransactionDocumentReference.ID.content

I hope this helps!

BR,
Thiago

mracantonius
Explorer
0 Kudos

So this will be updated once the sub-ticket is created, correct?

ThiagoSarmento
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yes, correct

mracantonius
Explorer

Thanks! Here's the code I used.

	// attach as a subticket
	var ls_BTDRef : elementsof ServiceRequest.BusinessTransactionDocumentReference;
	ls_BTDRef.BusinessTransactionDocumentReference.TypeCode		= "118";	// Ticket Object
	ls_BTDRef.BusinessTransactionDocumentRelationshipRoleCode	= "13";		// Parent document
	ls_BTDRef.BusinessTransactionDocumentReference.ID.content = lo_MainTicket.ID.content;
	var lo_Parent = lo_SubTicket.ParentServiceRequestReference.Create(ls_BTDRef);

Answers (0)