I have a doc field which has some highlighted sections. Can I create another field and use a formula to pull out these highlights?
1 Like
Unfortunately it is not possible to access parts of rich text in Fibery via API or Formulas.
Just to be clear, it is possible to get the contents of a rich text field (using a script like below) but it is not possible to see from the resultant markdown which bits of the text have been highlighted.
const fibery = context.getService('fibery');
for (const entity of args.currentEntities) {
const x = await fibery.getEntityById(entity.Type, entity.Id, ['Name', 'Description']);
const markdownContent = await fibery.getDocumentContent(x["Description"].secret, `md`);
console.log(markdownContent);
};
I can do this in Coda like so:
ParseJson(thisRow.Notes._Merge() + "", "$..[?(@.highlight == 'Yellow')].text")
Would be nice to have this in Fibery!
1 Like