I know using Note to upload files, Files will store in annotation's documentbody field, But, I don not how to using liquid to download it in portal.
*This post is locked for comments
Can you share some more details what is the use case here, why are you looking for liquid to download attachment, while attachment can be downloaded by clicking on them?
Refer this thread:
community.dynamics.com/.../230946
Hope this helps
Hi Mahender,
I find the attachment is base64 in xxxx.api.crm5.dynamics.com/.../annotations,
But adx not page support to download file in portal.
Case like:
I use liquid template to display knowledge article detail in portal, And this knowledge article have a file(upload in D365 online CRM note), And i show a link to download the file in knowledge article detail page. Then, How to let user download this file?
Hi Evan,
You can enable attachments to your knowledge page, please refer details for the site setting here:docs.microsoft.com/.../display-file-attachments-knowledge-article
Thank you for your help.
I using liquid template to show knowledge article, Not use Entity Form , So, I can't do like your suggestion.
Hello Evan
If I am understanding Correctly you are able to fetch Base 64 string using liquid code , so based on file type why can't you use data attribute of a hyper link tag to download files in Web template. if this is not your requirement please provide more info so that let me try to help here.
Please check :- https://stackoverflow.com/questions/10473932/browser-html-force-download-of-image-from-src-dataimage-jpegbase64
Thanks
James
You should be able able to form a link for downloading attaching by retrieving notes details using FetchXML in your web template.
Hi Emmaneul James Abraham,
This method not suit in some hand phone.
Now, I using this url(xxxxx.microsoftcrmportals.com/_entity/annotation/{annotation id} ) to download,
But No suit Knowledge Article Note, The knowledge Article need an setting(docs.microsoft.com/.../display-file-attachments-knowledge-article) as Mahender said,
This setting "KnowledgeManagement/NotesFilter" must need value (Is this value can be empty?).
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
ED-30091530-0 1