• Swkannan
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies

Hello

 

We were wondering if there is any way for us to know the number of users present in the subscriber org when they download a trail version of our App from Appexchange. 

 

Thank you

Hello

 

We have a managed package linked to our LMA. I am trying to set up workflows on the license object to send e-mail alerts to our leads.

I am not able to access the fields in the lead object when I try to apply rules on the License object. When I looked at the ER diagram License has a lookup relationship with the Lead object and I am wondering why I am not able to access the fields.

 

Can someone let me know if you have tried something similar and how I can get around this??

 

Thank you

Hi

 

We have developed a managed package and it is linked to salesforce LMA for managing licenses.

There is an option in Appexchange to provide a trail version or make the license active.

How can we make this license free for some customers??

 

Thanks!

Hello

 

We created an unmanaged package in the Dev Org and  tried installing the Package in our Test Org but I get this error and installation fails.

 

Apex Classes(01pU0000000HqgO)System.Exception: Assertion Failed: Expected: 0, Actual: 1
Class.TEST_Relationships.TestOrphanedRelDelete: line 179, column 3
External entry point



If I select Ignore Apex Test Failures then my package installs succesfully.



When I ran the tests in the Developer Org the code passes all  the tests.

 

Can someone let me know why this might be happening??

 

\I would like to know if it is ok to select Ignore Apex Test Failures during installation as I read that it is not best practice.

 

 

Thank you

 

 

 

Hello

 

We have a Reciprocal Relationships Package that extends the functionality of the relationships app in non-profit salesforce pack.

we have attempted to include the type of relationship between two contacts (eg. Mother, Daughter)

 

I am getting this error when I try to install the package.

 

 

Problem Component Detailtest_relationships.TestOrphanedRelDelete()

Apex Classes(01pU0000000HqgO)System.Exception: Assertion Failed: Expected: 0, Actual: 1
Class.TEST_Relationships.TestOrphanedRelDelete: line 179, column 3
External entry point



 

  /// <name> TestOrphanedRelDelete </name>
  /// <summary> test method for relationships and deleting the mirror record </summary>
  static testMethod void TestOrphanedRelDelete() {  
    Contact firstContact = new Contact (
      FirstName='Joe',
      LastName='Johanssen'
    );
    insert firstContact;

    Contact secondContact = new Contact (
      FirstName='Bobby',
      LastName='Johanssen'
    );
    insert secondContact;

    Relationship_Type__c firstRelType = new Relationship_Type__c (
      Name='&&Test_Relationship 1'
    );
    
    Relationship_Type__c secondRelType = new Relationship_Type__c (
      Name='&&Test_Relationship 2',
      Reverse_Relationship_Name__c = firstRelType.Id
    );
    
    firstRelType.Reverse_Relationship_Name__c = secondRelType.Id;
    
    insert firstRelType;
    insert secondRelType;

    Relationship__c[] crel = new Relationship__c[]{
      new Relationship__c(contact__c = firstContact.id, Relatedcontact__c = secondContact.id, Relationship_Type__c=firstRelType.Id)
    };
    insert crel;
    
    // check that rel gets created
    Relationship__c crel_original = [select id, Description__c,Relationship_Type__c,reciprocalrelationship__c from Relationship__c where id=:crel[0].Id];
    //relationship should be set right
    System.assertEquals(crel_original.Relationship_Type__c, firstRelType.Id);

    // check for mirror rel
    Relationship__c crel_mirror = [select id, Description__c, reciprocalrelationship__c, Relationship_Type__c from Relationship__c where reciprocalrelationship__c=:crel_original.Id];
    //mirror should reference the original
    System.assertEquals(crel_mirror.reciprocalrelationship__c, crel_original.Id);
    Contact secondContactForDelete = [select id from contact where id=:secondContact.id];
    Test.startTest();
    delete secondContactForDelete;
    Test.stopTest();
    // test change to the rel
    Relationship__c[] orphanedCrel = [select id from Relationship__c where id = :crel_original.Id];
    //original should have updated relationship
    System.assertEquals(0, orphanedCrel.size());
  }
}

Can someone tell me why this is happening?

 

Thanks in advance!

Hello

 

We have a managed package linked to our LMA. I am trying to set up workflows on the license object to send e-mail alerts to our leads.

I am not able to access the fields in the lead object when I try to apply rules on the License object. When I looked at the ER diagram License has a lookup relationship with the Lead object and I am wondering why I am not able to access the fields.

 

Can someone let me know if you have tried something similar and how I can get around this??

 

Thank you

Hi

 

We have developed a managed package and it is linked to salesforce LMA for managing licenses.

There is an option in Appexchange to provide a trail version or make the license active.

How can we make this license free for some customers??

 

Thanks!

Hello

 

We created an unmanaged package in the Dev Org and  tried installing the Package in our Test Org but I get this error and installation fails.

 

Apex Classes(01pU0000000HqgO)System.Exception: Assertion Failed: Expected: 0, Actual: 1
Class.TEST_Relationships.TestOrphanedRelDelete: line 179, column 3
External entry point



If I select Ignore Apex Test Failures then my package installs succesfully.



When I ran the tests in the Developer Org the code passes all  the tests.

 

Can someone let me know why this might be happening??

 

\I would like to know if it is ok to select Ignore Apex Test Failures during installation as I read that it is not best practice.

 

 

Thank you

 

 

 

Hello

 

We have a Reciprocal Relationships Package that extends the functionality of the relationships app in non-profit salesforce pack.

we have attempted to include the type of relationship between two contacts (eg. Mother, Daughter)

 

I am getting this error when I try to install the package.

 

 

Problem Component Detailtest_relationships.TestOrphanedRelDelete()

Apex Classes(01pU0000000HqgO)System.Exception: Assertion Failed: Expected: 0, Actual: 1
Class.TEST_Relationships.TestOrphanedRelDelete: line 179, column 3
External entry point



 

  /// <name> TestOrphanedRelDelete </name>
  /// <summary> test method for relationships and deleting the mirror record </summary>
  static testMethod void TestOrphanedRelDelete() {  
    Contact firstContact = new Contact (
      FirstName='Joe',
      LastName='Johanssen'
    );
    insert firstContact;

    Contact secondContact = new Contact (
      FirstName='Bobby',
      LastName='Johanssen'
    );
    insert secondContact;

    Relationship_Type__c firstRelType = new Relationship_Type__c (
      Name='&&Test_Relationship 1'
    );
    
    Relationship_Type__c secondRelType = new Relationship_Type__c (
      Name='&&Test_Relationship 2',
      Reverse_Relationship_Name__c = firstRelType.Id
    );
    
    firstRelType.Reverse_Relationship_Name__c = secondRelType.Id;
    
    insert firstRelType;
    insert secondRelType;

    Relationship__c[] crel = new Relationship__c[]{
      new Relationship__c(contact__c = firstContact.id, Relatedcontact__c = secondContact.id, Relationship_Type__c=firstRelType.Id)
    };
    insert crel;
    
    // check that rel gets created
    Relationship__c crel_original = [select id, Description__c,Relationship_Type__c,reciprocalrelationship__c from Relationship__c where id=:crel[0].Id];
    //relationship should be set right
    System.assertEquals(crel_original.Relationship_Type__c, firstRelType.Id);

    // check for mirror rel
    Relationship__c crel_mirror = [select id, Description__c, reciprocalrelationship__c, Relationship_Type__c from Relationship__c where reciprocalrelationship__c=:crel_original.Id];
    //mirror should reference the original
    System.assertEquals(crel_mirror.reciprocalrelationship__c, crel_original.Id);
    Contact secondContactForDelete = [select id from contact where id=:secondContact.id];
    Test.startTest();
    delete secondContactForDelete;
    Test.stopTest();
    // test change to the rel
    Relationship__c[] orphanedCrel = [select id from Relationship__c where id = :crel_original.Id];
    //original should have updated relationship
    System.assertEquals(0, orphanedCrel.size());
  }
}

Can someone tell me why this is happening?

 

Thanks in advance!