- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2016 07:13 AM
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;
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2016 07:28 AM
Manohar,
Use current.document_id.sys_class_name;
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2016 07:27 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2016 07:28 AM
Manohar,
Use current.document_id.sys_class_name;
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2016 07:54 AM
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.