Tuesday 16 June 2020

Override Standard Action/Buttons in the Communities

We have just got the new release where we can override Standard Action New and Edit. 

Here is the link:


But In Salesforce there is no direct way to override standard Detail and recently we came in the situation where we needed to implement it. So we found a workaround to achieve it by the facility provided by the Salesforce Communities.
Special thanks to "Nisar Ahmed" who helped me to find this solution.  

We need to follow the steps if we want to override Actions/Buttons with the custom component in the Community. 
Following is an example of override view/detail page:
  
Create a Component which we want to override. For e.g. Contact

And we should have this variable: @api recordId.

And now go to the page and create and create a design attribute in your meta.xml file.  

<targetConfigs>
<targetConfig targets="lightningCommunity__Default">
<property name="recordId" type="String" default="" label="Record Id"/>
</targetConfig>
</targetConfigs>

Go to the Community Builder.

Add a Custom Navigation Tab. For e.g. Contacts   

Create a new Component Page: Pages -> New Page -> Object Pages -> Contact - >Create






Now New Object List, Detail, Related List
Now Select the Contact Detail or ObjectName Detail


It will display 2 components Record Banner and Record Information Tabs we can remove both of them and can drag and drop our component in the Content Section.



When we click on the component it will display Record Id, we just need to copy the same and need to pass as into our component which we want to display.


Now once we have our component, click on the detail page then we need to paste {!recordId} in our API variable.


Just save and publish now we have overridden the page.  

Thanks
iBirds

#Salesforce #Lightning #Communities #OverrideAction #OverrideButton



20 comments:

  1. A very good and informative article indeed . It helps me a lot to enhance my knowledge, I really like the way the writer presented his views. I hope to see more informative and useful articles in future.protective face mask for sports

    ReplyDelete
  2. Nice post. Thanks for sharing such a piece of worthy information.

    Flats for sale in Patancheru, Hyderabad

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Mass Communication Degree

    ReplyDelete
  6. What a fantastic post! This is so chock full of useful information I can't wait to dig deep and start utilizing the resources you have given me. your exuberance is refreshing

    you've outdone yourself this time

    This is probably the best, most concise step-by-step guide I've ever seen on how to build a successful blog. i am also writing blog about the kindly review it online english speaking classes for kids.

    ReplyDelete
  7. This site helps to clear your all query.
    This is really worth reading. nice informative article.

    ReplyDelete
  8. Great post! I am actually getting ready to across this information, It's very helpful to me. Also great with all of the valuable information you have Keep up the good work you are doing well.

    Top Digital Marketing Agencies in Hyderabad

    ReplyDelete
  9. Assignments are very common in schools and colleges and some assignments are easy to complete and take no time. There are also complicated assignments that take very long and they are very complicated and demand a deep understanding of the subject. Accounting assignments are very hard and these assignments demand much attention because the values have to be correct and there if one number is entered incorrectly, the whole answer is affected.

    If you don't have enough time to complete your assignments, you can get accounting assignment help from accounting assignment help online websites and these websites connect you to an accounts expert who will complete the assignment for you and make sure that all the problems are correct. Any kind of help with the accounting assignment is valuable because there are various steps and the procedure is very lengthy. It is also important to follow a proper and neat format and most of the problems need to be explained too. When you hire an expert to complete your assignment they take care of all these requirements.

    ReplyDelete
  10. Nice to be visiting your blog. satta matka, kalyan matka number, matka result, kalyan main matka tips
    For More Details - Satta Matka

    ReplyDelete
  11. Emblix Academy – Digital marketing institute in KPHB, we address all major and minor aspects required for any student’s advancement in digital marketing. Clutch USA named our Digital Marketing Institute the best SEO firm.

    The future of digital marketing is promising and full of possibilities.
    As a result, skilled digital marketers who can keep up with the rising demand are in high order.

    In the Emblix Academy Digital marketing institute in KPHB, you will learn about all the major and minor modules of digital marketing, from Search engine marketing to Social Media Marketing and almost all Tools used for Digital Marketing.

    One stop place for all Digital Marketing courses! Emblix Academy is a Team of dedicated Professionals with 12years of experience in various Digital Platforms. We assure to provide the best Digital Marketing courses to enhance your Career.

    Digital Marketing Institute in KPHB

    ReplyDelete
  12. Much thanks for sharing this article. I truly love it. This is an exceptionally decent one and gives inside and out data. I'm truly content with the quality and show of the article. I'd truly prefer to see the value in the endeavors you get with composing this post. Much obliged for sharing. HRM Thesis Topics

    ReplyDelete
  13. Ingenious Advertise is one full-service 360-degree Creative Digital Advertising Agency with Art & Technologies based in Hyderabad. Poised to serve our client’s Advertising, Marketing, and Branding, we offer services like Integrated Digital Marketing, Branding & advertising, UX/UI design & Website/App design, Video production and we travel that extra mile, spend more time in orchestrating ideas that only engage and captivate our client’s audience. Best Digital marketing Agency in Hyderabad.

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. Limo Rentals Frankfurt provides the very best transportation service and professional drivers with a customer-centric focus. We care about our clients and put all of their needs first by knowing them and their preferences intimately.

    ReplyDelete
  16. Our designer Custom sports wear made in USA It combines quality materials and elegant sophistication. Only clothes that offer these structural characteristics and style are worthy of the sprt brand. Designer makes easy Custom corporate apparel, dress shirts, jackets, and more. Complete the outfit with custom hats, sweaters, and zip-up jackets. our staff will have an outfit for every season. for daily use or are seeking r anniversary or next big event, we make it easy. We offer low minimums, fast turnarounds, and quantity discounts on a wide selection of company shirts Made in USA Spirit wear

    ReplyDelete
  17. Hire Angular JS Developers from well-famous Software, web, and app development companies, and save your hiring process based on different hiring models. Agnito Technologies is a leading software, web , and mobile app development company that offers to hire dedicated angular developers remotely for full-time, part-time, and an hourly basis as per your project requirements. If you are looking to get customized web apps to improve your web design architecture by using Angular js technologies then choose our expert team of Angularjs developers at a very low price.

    Hire Angular App Developers

    ReplyDelete