on 2019 May 21 8:46 AM
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.
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.