I am wondering is there a built-in function/method in Acumatica that we can pass a document NoteID and that method returns the Document Type. For example can I pass the NoteID of an AP Bills and Adjustments document NoteID and it return “Bill”, “Credit Adj.”, “Debit Adj.” … or for AR Invoice it rturns “Invoice”, “Debit Memo”, “Credit Memo” … and so on?
Someone with deeper knowledge might be able to directly answer your question. One potential way would be to use the SearchIndex table. But it does require that the documents be included in the global search so it’s possible your lookup might not return a result even though it is a valid document. But it does have a text column with the EntityType.
- public object GetEntityRow(Guid? noteID)
- public Type GetEntityRowType(Guid? noteID)
- public string GetFriendlyEntityName(Guid? noteID)
That’s not exactly what you are looking for, but I think you can use those to implement what you need.
Cheers!
And that’s good to know about the Search Index not always being in top form.
I’m intrigued by your question and I hope you find an answer because I can see the value in having that functionality.
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.