Posting rich text note via API | Community
Skip to main content
Level 5
July 20, 2023
Solved

Posting rich text note via API

  • July 20, 2023
  • 2 replies
  • 1831 views

I'm using Fusion to post notes to timesheet objects within Fusion.  At the moment, I'm using /attask/api/v16.0/NOTE to push plain-formatted notes, but want to upgrade those to rich text.

 

I've seen the instructions at https://experienceleague.adobe.com/docs/workfront/using/adobe-workfront-api/api-general-information/rich-text-field-api.html?lang=en, but cannot figure out how to translate those to the NOTE object.

 

I've also grabbed the XHR requests made by the Workfront UI and have been able to reproduce using that -- however, I'd much prefer to NOT use something like this since it's a private API and "fragile" as a result.  It does indicate that doing this is possible, though.

 

Can someone guide me on how to best achieve a rich text note from the API?

 

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Richard_Le_

Hi,

 

When creating a note object in Fusion, use the "create record" module and choose the NOTE object type. Then in your field mapping make sure you select "html" instead of "note text". Note text will only allow plain text, but with the html field, you can add html tags into your text to format it appropriately.

 

So using the following into the html field of the create record module:

 

Hey cverges-medallia,<br><br>You have an <b>assignment</b> that you <i>need to work on</i>. <br><br>Hope you are well. <ul><li>Thing 1</li><li>Thing 2</li><li>Thing 3</li></ul>

 

Would return the following:

 

 

Hope this helps!

 

Best Regards,

Rich. 

 

2 replies

Richard_Le_Community AdvisorAccepted solution
Community Advisor
July 20, 2023

Hi,

 

When creating a note object in Fusion, use the "create record" module and choose the NOTE object type. Then in your field mapping make sure you select "html" instead of "note text". Note text will only allow plain text, but with the html field, you can add html tags into your text to format it appropriately.

 

So using the following into the html field of the create record module:

 

Hey cverges-medallia,<br><br>You have an <b>assignment</b> that you <i>need to work on</i>. <br><br>Hope you are well. <ul><li>Thing 1</li><li>Thing 2</li><li>Thing 3</li></ul>

 

Would return the following:

 

 

Hope this helps!

 

Best Regards,

Rich. 

 

cvergesAuthor
Level 5
July 20, 2023

Thank you!  I see that.  One related question -- what's the difference between a NOTE and an UPDATE?  In Fusion, I see that NOTE has html but UPDATE doesn't.

Community Advisor
July 20, 2023

I'm not sure about the update object, I haven't used it. Hopefully someone else in the community can chip in here. 

lgaertner
Level 9
August 21, 2023

Hello,

 

although this is answered already, I just recognized, that you can create an update containing rich text using Workfront itself and after posting click on the three dots to copy the whole body text.

 

Posting this using Fusion you will get another formatted update.

lgaertner
Level 9
August 21, 2023

I just saw, that the formatted text is only shown if "Commenting Beta" is activated...