• Abdulhannan Patel 8
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
The users have got all the subscription permission on the profile however they cannot add other users for subscription.

The message says -  Subscription unsucessful.
Error Message

Any reason behind this?
Hello,

I have one custom lightning action on the task page. I am trying to show a create event page with some events fields prepopulated like WhoId and WhatId from the task. I am using the force:recordData to get the data from task and pass it to the event page. However, the data is not loaded in the targetFields attribute. Can someone help me here?

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId,force:lightningQuickAction"
                access="global" controller="ScheduleEventController" extends="c:Base" description="Create_Follow_up_Event">

    <aura:attribute name="simpleRecord" type="Object"/>
    <aura:attribute name="recordError" type="String"/>
    
    <force:recordData aura:id="recordLoader1"
                      recordId="{!v.recordId}"
                      layoutType="FULL"
                      targetFields="{!v.simpleRecord}"
                      recordUpdated="{!c.myAction}" />

    <lightning:spinner variant="brand"  size="medium" />

    <!-- Display Lightning Data Service errors, if any -->
    <aura:if isTrue="{!not(empty(v.recordError))}">
        <div class="recordError">
            <ui:message title="Response" severity="info" closable="true">
                {!v.recordError}
            </ui:message>
        </div>
    </aura:if>
</aura:component>


({
    myAction : function(component, event, helper) {
            //$A.get("e.force:closeQuickAction").fire();
            console.log('I am called');
            var taskId = component.get("v.recordId");
            var contactId = component.get("v.simpleRecord.WhoId");
            console.log('taskId>>',taskId);
            console.log('simpleRecord>>',component.get("v.simpleRecord"));
    }
})

The contactId is null in the client side controller!

Thank you guys.
Can we have space in the Multi select picklist value? On UI, it works and creates the record with this field however, using apex, if I pass space in the multiselect picklist field, it shows bad value error. Is there any limitation of multi picklist field? Please help.
The users have got all the subscription permission on the profile however they cannot add other users for subscription.

The message says -  Subscription unsucessful.
Error Message

Any reason behind this?
Hello,

I have one custom lightning action on the task page. I am trying to show a create event page with some events fields prepopulated like WhoId and WhatId from the task. I am using the force:recordData to get the data from task and pass it to the event page. However, the data is not loaded in the targetFields attribute. Can someone help me here?

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId,force:lightningQuickAction"
                access="global" controller="ScheduleEventController" extends="c:Base" description="Create_Follow_up_Event">

    <aura:attribute name="simpleRecord" type="Object"/>
    <aura:attribute name="recordError" type="String"/>
    
    <force:recordData aura:id="recordLoader1"
                      recordId="{!v.recordId}"
                      layoutType="FULL"
                      targetFields="{!v.simpleRecord}"
                      recordUpdated="{!c.myAction}" />

    <lightning:spinner variant="brand"  size="medium" />

    <!-- Display Lightning Data Service errors, if any -->
    <aura:if isTrue="{!not(empty(v.recordError))}">
        <div class="recordError">
            <ui:message title="Response" severity="info" closable="true">
                {!v.recordError}
            </ui:message>
        </div>
    </aura:if>
</aura:component>


({
    myAction : function(component, event, helper) {
            //$A.get("e.force:closeQuickAction").fire();
            console.log('I am called');
            var taskId = component.get("v.recordId");
            var contactId = component.get("v.simpleRecord.WhoId");
            console.log('taskId>>',taskId);
            console.log('simpleRecord>>',component.get("v.simpleRecord"));
    }
})

The contactId is null in the client side controller!

Thank you guys.
Can we have space in the Multi select picklist value? On UI, it works and creates the record with this field however, using apex, if I pass space in the multiselect picklist field, it shows bad value error. Is there any limitation of multi picklist field? Please help.