Help with flow designer

Abhijit Das7
Tera Expert

Hi All,

 

I am using flow designer to create flow to translate knowledge article during creating knowledge article :

1. Right now I am working to translate short description of knowledge article.

2. I am not understanding how to translate article body of knowledge article 

 

Flow Designer :

Trigger :

trigger.PNG

 

Action : Translate Text (short description )

language.png

If I am populating target language manually ( static , eg ; es - spanish ) then the short description is translating. But when I am using language data pill to select language dynamically then short description is either not translating or becoming empty. 

Action : Update Record

short desc.PNG

 

I am populating short description using script :

/*
**Access Flow/Action data using the fd_data object. Script must return a value.
**example: var shortDesc = fd_data.trigger.current.short_description;
**return shortDesc;
*/
var languageArray = fd_data._1__translate_text.translations;
var translatedShort = languageArray[0].translatedText;

return translatedShort;
 
Please help me translating short description of knowledge article using language data pill and how can I translate article body of knowledge article .
 
 
Thanks in advance
5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

So how do you actually want to translate this? Do you have dynamic translation active for example? Or do you have something else activated to be able to translate?

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi @Mark Roethof 

 

I have dynamic translation with google cloud active on my instance. 

Please help me with these things :

1. How can I translate knowledge article using language data pill picker rather than populating static language manually.

2. How can I translate article body as well of knowledge article .

 

Thanks in advance 

Hi @Mark Roethof 

 

Can you please guide in above issue. I think there is issue with scripting in update record action.

 

Thanks in advance;

Abhijit Das7
Tera Expert

Hi @Ankur Bawiskar 

 

Can you please guide me on this issue. 

Thanks in advance