[progress Communities] [progress Openedge Abl] Forum Post: Rbv_api.createrecord() Fails...

  • Thread starter Thread starter IramK
  • Start date Start date
Status
Not open for further replies.
I

IramK

Guest
Hello, I am using the server-side create record function "rbv_api.createRecord()" in an Object script trigger (after create) and I have field level validation on one of the lookup fields (hierarchy relationship). So basically when I create a new record (lets say: type = 1), I have a trigger that creates another similar record based on a condition (lets say: type = 2) and this new record has the original record's ID as its lookup field value. Now I have a field level validation code set on the lookup field such that, if the lookup field value is empty it should error. So the situation that is happening here is: the first record is being created easily without any issues, however when the trigger is trying to create the 2nd record, an error is being thrown by the field level validation code saying that the lookup field value is not specified. Could someone point me out in the right direction in order to know what I am doing wrong here please? Cheers. Iram

Continue reading...
 
Status
Not open for further replies.
Back
Top