• Raphael Mazouz 6
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
I have a lightning component that I created in my Developer Salesforce Account and I want to export my managed package to an another Salesforce Account.

I sucessed to create my managed package and install it in the other Salesforce Account (with also this component).

But the problem is :
When I am in the other Salesforce Account and I am adding a new Action with the option Lightning Component , it is writting me **Error: No Lightning Component Quick Actions are available for your organization.**

I tried to do it with an unmanaged package in the other Salesforce Account and it is working , so I think that the problem is related to the managed package

Can you help me with this problem
thanks you very much

The code of the component is here:

***DecryptService.cmp***

    <aura:component controller="raphspace.EncryptionService" implements="force:lightningQuickAction,force:hasRecordId" >
     <aura:attribute name="listOfValue" type="List" />
       
    <aura:handler name="init" value="{!this}" action="{!c.init}"/>

    <aura:iteration items="{!v.listOfValue}" var="item">
        <p>{!item}</p>
    </aura:iteration>
</aura:component>


***DecryptServiceController.js***


   init: function(cmp) 
   {    
   
        var list = [''];
        cmp.set('v.listOfValue', list);
    
    
        var action = cmp.get("c.decryptDataLightningVersion");
        action.setParams({
            id : cmp.get("v.recordId")
        });

        var myList = new Array();
        var error;
        
        action.setCallback(this, function(response) 
        {

            var state = response.getState();
            if (cmp.isValid() && state === "SUCCESS") 
            {
                for(var i=0 ; i<response.getReturnValue().length;i++)
                {                    
                    if( i==0 && response.getReturnValue()[0][0].startsWith("Error"))
                    {
                        myList.push(response.getReturnValue()[0][0]);
                        break;
                    }
                    else
                    {
                        var temp=response.getReturnValue()[i][0];
                        temp+=' : ';
                        temp+=response.getReturnValue()[i][1];
                        myList.push(temp);
                    } 
                }                              
            }
            else if (cmp.isValid() && state === "ERROR") 
            {
                    error = 'Error , please contact your administrator';
                     myList.push(error);
            }
            cmp.set('v.listOfValue', myList);             
            
        });
        $A.enqueueAction(action);
    }
 
I would like to do the following example but dynamically via metatdada API.
Add Action to the page:
  1. Go to Object
  2. Find Custom, Button and Links Section
  3. Click "New Action"
  4. Add the Lighting component you want same as below
User-added image
Can you show me an example of metadata Api code to do it ? (The custom component is already existing in my org)
Thank You
I exported my package in an another org , and when I click on my javascript button (on detail page Contact, using the classic version) I am receiving this error:

> {faultcode:'soapenv:Client', faultstring:'No operation available for request {http://soap.sforce.com/schemas/package//FromOutside}decryptData, please check the WSDL for the service.', }

In my org the button is working , all its okay , but I think that it is not working in the second org due to the use of the package (when I exported my code into the second org).

My javascript button is calling apex class with the function 

> sforce.apex.execute

And yes my class is global and my function is a web service.

Do you have an idea of what could be this error ?

Thank You.


 
I exported my package in an another org , and when I click on my javascript button (on detail page Contact, using the classic version) I am receiving this error:

> {faultcode:'soapenv:Client', faultstring:'No operation available for request {http://soap.sforce.com/schemas/package//FromOutside}decryptData, please check the WSDL for the service.', }

In my org the button is working , all its okay , but I think that it is not working in the second org due to the use of the package (when I exported my code into the second org).

My javascript button is calling apex class with the function 

> sforce.apex.execute

And yes my class is global and my function is a web service.

Do you have an idea of what could be this error ?

Thank You.


 
Hello Developers,

I am getting "Error: No Lightning Component Quick Actions are available for your organization." Error while trying to create Quick Action into Lightning. I am using below code into my component.
 
<aura:component controller="testPackage1122.caseMergeController"
                implements="force:lightningQuickAction,force:hasRecordId" access="global">
	<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    
    <!--Attributes-->
    <aura:attribute name="OriginalCase" type="Case"/>
    <aura:attribute name="SubjectCriteria" type="String[]" default="Contains,Equals"/>
    <aura:attribute name="CaseOrigin" type="String[]" default=""/>
    <aura:attribute name="CaseStatus" type="String[]" default=""/>
    <aura:attribute name="CasePriority" type="String[]" default=""/>
    <aura:attribute name="NumberOfCases" type="String[]" default="2,3,4,5,6,7,8,9,10"/>
    <aura:attribute name="DuplicateCaseList"
                    type="testPackage1122.commonWrapperClass"/>
    <aura:attribute name="DuplicateCaseList1"
                    type="testPackage1122.commonWrapperClass.duplicateCaseListDisplay[]"/>
</aura:component>

I noticed that Error is because of below line.
<aura:attribute name="DuplicateCaseList1"
                    type="testPackage1122.commonWrapperClass.duplicateCaseListDisplay[]"/>

In my code "testPackage1122" in my Org namespace and I need to include this namespace because my component is going to be part of managed package.
 
Any Idea what and where I am doing wrong.
 
Any help or suggestion will be greatly appreciated.
 
Thanks,
Amit Singh