cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create a Business Transaction Reference from service request to a custom BO?

renken158
Product and Topic Expert
Product and Topic Expert
608

Hello Experts,

I am try to create a business transaction reference for a service request to a custom BO. In this case, custom BO works as a predecessor, below is my code:

varBTDData : elementsofthis.BusinessTransactionDocumentReference;

BTDData.BusinessTransactionDocumentReference.ID.content = this.AppointmentID.content.AddLeadingZeros();“this is custome BO ID, here is 1000000168

BTDData.BusinessTransactionDocumentReference.TypeCode = "/YYYXXX/50";" this is custom BO code, here is BO_DeliverAppt

BTDData.BusinessTransactionDocumentRelationshipRoleCode = "1";"1 is predecessor

this.BusinessTransactionDocumentReference.Create(BTDData);

After execution, I got below excepted message

I am 100% sure that 1000000168 is existed for BO_DeliverAppt. BTW, this code can be successfully executed for a standard BO, only failed for custom BO.

Can anyone give some advice on this, thanks in advance.

Accepted Solutions (0)

Answers (0)