Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Approving Table Name

manredd
Kilo Expert

I required the table name of approving item see below

i used this code to know the category of service catalog  

if (current.document_id.cat_item.category=="b1ff3f670f66420047a05d78a1050e5e")

  answer = true;

else

  answer = false;

find_real_file.png

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Manohar,



  Use current.document_id.sys_class_name;



Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

3 REPLIES 3

Anurag Tripathi
Mega Patron
Mega Patron

If i understand correctly, you need the table name of the item for which this approval is requested for.



If that's right, current.parent.sys_class_name


-Anurag

Abhinay Erra
Giga Sage

Manohar,



  Use current.document_id.sys_class_name;



Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response


Chuck Tomasi
Tera Patron

Hi,



current.sysapproval.sys_class_name will give you the table name of an approval's task table.



If you approving a custom table that is not extended from task (rare, but happens), let us know.