• Genoud
  • NEWBIE
  • 40 Points
  • Member since 2015
  • Developer
  • Accenture

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
hello everyone,

I converted my project from metadata to sfdx. When I push, I have this error 
Global Picklist 'GlobalValueSetName' is not allowed as record type picklist. Field name should be specified instead (8906:25)
Here is The RecordType Metadata from metadata API.
<recordTypes>
        <fullName>RecordTypeName</fullName>
        <active>true</active>
        <description>RecordType Description</description>
        <label>RecordTypeLAbel</label>
        <picklistValues>
            <picklist>GlobalValueSetName</picklist> <!-- In SFDX I need to put here the field name for this to work. -->
            <values>
                <fullName>Value1</fullName>
                <default>true</default>
            </values>
            <values>
                <fullName>Value2</fullName>
                <default>false</default>
            </values>
            <values>
                <fullName>Value3</fullName>
                <default>false</default>
            </values>
        </picklistValues>
    </recordTypes>
I need to replace the GlobalValueSetName in the converted project with the associated CustomField Name before push. This is time consuming as there are many occurences. 

How to solve this issue?

Thanks
  • March 13, 2018
  • Like
  • 0
Hello everyone,

I'm trying to deploy a package which contains Custom fields added on Account standard object with History tracking enabled. The deployment fails with the error 
The entity: Account does not have history tracking enabled
I enabled the history tracking on the account object definition and it is not working. 
<enableHistory>true</enableHistory>
can someone help me understand what is going on?

Thanks 
  • March 06, 2018
  • Like
  • 0
After login out from salesfroce 1, I'm not able to log in again. After entering my credentials, salesforce display the Allow Access screen. When I tap on Allow, it turn back to the login screen. Can someone explain what is going on?
  • November 24, 2015
  • Like
  • 0
Hello! 
Please I would like how to choose my language in Thrailhead. http://developer.salesforce.com always open in french on my computer.
Thanks
  • November 13, 2015
  • Like
  • 0
folowing is the lighting code : 

<aura:component controller="ActivateAgreementController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction"  >
    <aura:handler name="init" value="{!this}" action="{!c.validateandactivateagreement}"/>
    <aura:attribute name="smsg" type="Boolean" default="false"/>
    <aura:attribute name="emsg" type="Boolean" default="false"/>
    <aura:attribute name="message" type="String"/>
    <aura:if isTrue="{!v.emsg}">
        <ui:message title="Error" severity="error" closable="false">
           Owner Update failed. Please try again later or contact your System Admin.
        </ui:message>
    </aura:if>
    <aura:if isTrue="{!v.smsg}">
        <ui:message title="Confirmation" severity="confirm" closable="false">
            <div>

          ResultMessage:<ui:outputText value="{!v.message}"/>

     </div>
           Successfully updated Owner.
        </ui:message>
    </aura:if>
</aura:component>

({
    validateandactivateagreement : function(component, event, helper) {
       alert('start1');
        var action = component.get("c.agreementactivate");
        action.setParams({"id": component.get("v.recordId")});
        action.setCallback(component,
        function(response) {
            var state = response.getReturnValue();
            if (state === true){
                $A.get('e.force:refreshView').fire();
                component.set("v.smsg", true);
                 cmp.set("v.message", "hi");
            } else {
                 component.set("v.emsg", true);
            }
        }
        );
        $A.enqueueAction(action);
        
    }
})

global with sharing class ActivateAgreementController {
    //Constructor
    public ActivateAgreementController(ApexPages.StandardController controller) {
    }
    //Accepts the record id and sends a boolean status about the updation
    @AuraEnabled @RemoteAction
    global static Boolean agreementactivate(Id Agreementid){
        try{
            //Group oppQueue = [select Id from Group where  Type = 'Queue' AND DeveloperName = 'Opportunity_Review_Queue'];
            //Opportunity crec = [Select Id, OwnerId from Opportunity where Id=:oppid];
            //crec.OwnerId = oppQueue.Id;
            //update crec;
            
            contract contract_record = [select Record_Type_Name__c,AccountId,telia_TC_Party__c,telia_Customer_contact_person__c,telia_Sales_person__c 
                                        ,telia_Sales_responsible__c ,telia_Confidentiality_class__c,telia_Start_date__c ,telia_Signature_alternative__c
                                        ,CustomerSignedId ,CustomerSignedDate,telia_Customer_Signature_Place__c,Telia_Signed_By__c,Telia_Signed_Date__c,Signatories_Required__c from 
                                        contract where Id=:Agreementid];
                                        
                                        
           return true;
        }
        catch(Exception e){
            return false;
        }
    }
}

its failling from quick action in lighting .error message : 
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Action failed: forceChatter:lightningComponent$controller$doInit [Error while creating content for lightning component quick action]
quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent
Hi All,

Getting the below error when i click on quick action containing a lightning component. 
Action failed: forceChatter:lightningComponent$controller$doInit (undefined is not an object (evaluating 'fn-apply')]

quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent

Let me know what the issue could be.
Hello! 
Please I would like how to choose my language in Thrailhead. http://developer.salesforce.com always open in french on my computer.
Thanks
  • November 13, 2015
  • Like
  • 0