AGS return from AP20

 3 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
Lee Blattner
New Member
Posts: 4
New Member
    I added an AP Invoice to Lawson from an external application and checked the XML response for API-OBJ-IDr0 and got 0 (zero). I checked the AGS return in Lawson AP20.2 itself and it was also 0 (zero). Maybe 5 or 10 minutres later, there was a 7 digit number but it does me absolutely no good if I can't get the OBJ_ID from the XML response. Is there a way to get the APINVOICE.OBJ_ID when the invoice is created? Or am I missing something?
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      If you query APINVOICE right after the invoice is added, can you get the Obj_Id?
      David Williams
      Lee Blattner
      New Member
      Posts: 4
      New Member
        I haven't tried, but I am trying to address an issue with recurring invoices so the reason for needing the OBJ_ID is so I can get the SUFFIX. If I query the table after I get the response, I won't know if it's the right invoice +suffix. Do you know why there seems to be a lag in generating the OBJ_ID?
        Lee Blattner
        New Member
        Posts: 4
        New Member
          BTW. The SUFFIX is always 0 (zero) too.