• Farheen Aziz
  • 0 Points
  • Member since 2019

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2
Hi All,
As of now, we are able to selecte the Account,Contact,Cases..etc.. in Related To field in Task, but not the Lead.
How to add the Lead Option to Related to Field.
Seems to be this option is coming if select the 'Allow Activities' option for Object.
I have created a Custom Object with 'Allow Activities' and custom Object Name is coming under the Related To Dropdown values.
As the Lead is a Standard Object, I am not able to find the option to Edit the Lead Object.
Any ideas?  
User-added image
  • October 02, 2019
  • Like
  • 0
I'm trying to build a Lightning Component Quick Action for Record Quick Action as well as Global Quick Action.

The component opens in a Modal popup in center of screen when in Record View and it opens in a popup along the bottom of the screen when called from Global Action menu (+) symbol in header.

To close the popup I've added following Event Call:
var dismissActionPanel = $A.get("e.force:closeQuickAction"); 

This works for Record based Quick Action modal dialog and closes it, but it doesn't do anything when called in Global Quick Action.
Here is my complete code for the Lightning Component:

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickActionWithoutHeader" access="global" >
    <div class="slds-p-around--medium">
        <h2 class="slds-text-heading--medium" >Test Heading</h2>
    <div class="slds-p-around--medium">
        Test content of module
    <div class="slds-p-around--medium">
        <ui:button label="Cancel" 
                   class="slds-button slds-button--neutral cuf-publisherCancelButton uiButton"
        <ui:button label="Save &amp; Close" 
                   class="slds-button slds-button--brand cuf-publisherShareButton uiButton"

    cancelBtn : function(component, event, helper) {
        // Close the action panel
        var dismissActionPanel = $A.get("e.force:closeQuickAction");
    saveAndCloseBtn : function(component, event, helper) {
        // Display the total in a "toast" status message
        var resultsToast = $A.get("e.force:showToast");
            "title": "Save Success!",
            "message": "A test save success toast!"
        // Close the action panel
        var dismissActionPanel = $A.get("e.force:closeQuickAction");

And then I created a Quick Action in a object say Contactand also created a Global Quick Action and updated Publisher Layout to add the newly created quick actions to it.
  • March 10, 2017
  • Like
  • 1