This blog explain how to access asset library file uploaded from Salesforce CRM into Salesforce lightning Community.
I have created Salesforce Lightning Community with Standard "Customer Account Portal" community template.
Requirement, I have HTML editor (drag and drop) where i want to display asset file which is uploaded into Salesforce CRM.
for example, I have uploaded IconOne.jpg into Asset Library.
below code snippets display this uploaded IconOneImage into Salesforce community.
<img src="{!contentAsset.IconOne.1}" alt="IconOne"/>
In above code, digit "1" is added after IconOne which indicates version of uploaded image.
Thats It.
Enjoy! If you have any questions, comments etc. please feel free to let me know. As always, please feel free to get in touch me as I would be more than happy to assist you with any of your Salesforce development needs.
Read More: WhatsApp on Salesforce Integration in 5 Steps
Which Salesforce API Do I Use in Integration?
When To Use Salesforce REST API
When To Use Salesforce SOAP API
When To Use Salesforce Bulk API
Latest Salesforce Interview Questions and Answers:
I have created Salesforce Lightning Community with Standard "Customer Account Portal" community template.
Requirement, I have HTML editor (drag and drop) where i want to display asset file which is uploaded into Salesforce CRM.
for example, I have uploaded IconOne.jpg into Asset Library.
below code snippets display this uploaded IconOneImage into Salesforce community.
<img src="{!contentAsset.IconOne.1}" alt="IconOne"/>
In above code, digit "1" is added after IconOne which indicates version of uploaded image.
Thats It.
Enjoy! If you have any questions, comments etc. please feel free to let me know. As always, please feel free to get in touch me as I would be more than happy to assist you with any of your Salesforce development needs.
Subscribe blog for More updates !!!
Read More: WhatsApp on Salesforce Integration in 5 Steps
Which Salesforce API Do I Use in Integration?
When To Use Salesforce REST API
When To Use Salesforce SOAP API
When To Use Salesforce Bulk API
Latest Salesforce Interview Questions and Answers:
No comments:
Post a Comment