The CreatorCon Call for Content is officially open! Get started here.

I want to fetch some field on current table in knowledge approval flow

pandeyved
Tera Contributor

Hi All,
We have oob workflow for Knowledge Article approval, in that I need to fetch the some field from the current table that is kb_knowledge. How I can do that in Approval-user step script.

pandeyved_0-1700803042551.png

Please guide
Thanks

3 REPLIES 3

praveenhirekudi
Tera Contributor

you can use current key word to get any field value as mentioned below

current.getValue("state");

Anand Kumar P
Giga Patron

Hi @pandeyved ,

You can access kb_knowledge table variables with below script

var myVar = current.variables.variable_name;


Please mark it as solution proposed and helpful if it serves your purpose.

Thanks,

Anand

Tai Vu
Kilo Patron
Kilo Patron

Hi @pandeyved 

You can access the object current is available in the Additional approvers script.

So to get the value of some specific fields in the current Knowledge Article record, just simply use.

//get Knowledge Base sys_id
current.kb_knowledge_base;
current.getValue("kb_knowledge_base");

 

Cheers,

Tai Vu