Flow Designer - update an HTML field with the content of another HTML field

Jan Hondebrink
Kilo Contributor

Hi all,

In Flow Designer we are updating a record. Some of its fields are HTML fields and are to be updated with the content of other HTML fields. Instead of the content however, what we get is something like this:

com.glide.glideobject.GlideHTML@dbe6b4

which looks more like a reference to the HTML field instead of the content of the field

The Flow Designer record update looks like below. "TAD Description" is the HTML field, which we want to update with the contents of "Trigger->Customizations Record->Custom Element ->TA Custom Element Description", also an HTML field.

Anybody any idea why this is happening?

Many thanks in advance, Jan

 

6 REPLIES 6

I'm interested in your workaround, can you share it? thanks

This is a re-usable solution that is as clean as you can get short of a SNOW actually fixing it. 

 

BenChase1_0-1669841966947.png

Create a script step with 2 Input Variables

  • "record" the whole record passed from the flow that has the HTML field you want to retrieve a value from.
  • "field" is the ServiceNow internal name of the field you want to get the HTML value from. 

This is the script:

(function execute(inputs, outputs) {
  var record = inputs.record;
  var field = inputs.field;
  outputs.return_str = record.getValue(field);
})(inputs, outputs);

 This is what it looks like used in a Flow:

BenChase1_1-1669842925316.png