Hi @hardikv @OOlashyn
Thanks for all your response!
I have created one custom Entity called "Custom Knowledge Article" where I have added the "Content" multiline text field, language lookup field and some other fields.
While I was going through @hardikv links, meantime I had done some research on the form which is present in Web Page Entity and found that in that form the Rich Text control is nothing but Web Resouce. So, in my main information form, I have included one Web Resource and given the exact same properties as web page form (except some).
And the Rich text is working perfectly, the data is inserting perfectly with the correct HTML script. My form is working perfectly and I included that to my model-driven app.
Web Resource for Content HTML in Custom KA
The form is getting the Rich Text:
Rick Tect in KA form
I added a few data to the Entity from the form:
Custom KS entity storing data correctly
But I am facing one issue when trying to read the data using Liquid code. I am not able to understand why I am not able to fetch the data. The liquid code looks perfect. Below is the code for the same for a single record present in the Entity.(just for checking purpose):
{% assign KAGUID = entities.cre08_customknowledgearticle['a5e838r1-d0cc-ea11-a812-016d4sb148ga'] %} // this GUID is wrong but I have used correct one while doing my fecth
{% if KAGUID %}
{
"KA_ID": "{{ KAGUID.cre08_customknowledgearticleid}}",
"KA_Number": "{{ KAGUID.cre08_kanumber}}",
"KA_Keyword": "{{ KAGUID.cre08_keyword}}",
"KS_Desc": "{{ KAGUID.cre08_description}}",
"KA_Content": "{{ KAGUID.cre08_content}}",
"KA_Createdon": "{{ KAGUID.createdon}}"
}
{% else %}
{ "success" : false }
{% endif %}
My web template is in application/json MIME type.
I am getting below as output:
{ "success" : false }
I am not able to understand where I am doing mistake.
Could you please help me to solve the issue? Any help will be appreciable.
Thanks,
Amit