[DONE] Append Rich Text fields in Update action in automations

This is so awesome!

We use a lot of templates for description fields. Only problem that occurs now is that we can’t use a formula when we want to append to a rich text field.

It’s only possible with the ‘append/prepend’ function. But if you use that, all call out blocks and other cool stuff will be gone.

That’s why we currently use a script so that we can have the html content

const fibery = context.getService('fibery');

for (const destination of args.currentEntities) {
    const source = await fibery.getEntityById('DB automatiseringen en templates/Template - Omschrijving', destination['Template voor omschrijving']['Id'], ['Omschrijving']);
    const sourceContent = await fibery.getDocumentContent(source['Omschrijving']['Secret'], 'html');
    await fibery.appendDocumentContent(destination['Omschrijving']['Secret'], sourceContent, 'html');
}

Would be great if we don’t need this script anymore.

(If you use the update function + a formule, you will get an exact copy of the rich text field. But it will always overwrite the description field, never append)

1 Like

We will think. Technically it is easy to do, but we should invent some UI

3 Likes

An option without changing UI

  • When the action is one of these
  • And a rich text field is mentioned via markdown (i.e. [Step 1].Template.Description)
  • Then always put the HTML version of the entity in the description field (instead of the markdown version)

But I don’t know if that’s technically easy to do and if there are any cons.

We will add Formula setting for these actions in the next release, so it will work fine for your case

1 Like

Awesome, thank you so much! :star_struck:

1 Like

Implemented in latest release

1 Like