• oleg.tuchscherer
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 13
    Replies
Hi,
i have installed a managed package in a Sandbox and in the Live Org.
"My Domain" is configured.
An Email Template contains a formula, computing a link: {!SUBSTITUTE(URLFOR('/apex/VFPage'),'http:','https:')}
Linkg points to a Visualforce Page.
Visualforce Page is a part of managed package.

SANDBOX: url created by the formula in the sandbox is correct
------------------------------------------------------------------------------------------------
https://factory42--sb42--sf42-prfxpe.cs17.visual.force.com/apex/VFPage

LIVE: url is wrong
------------------------------------------------------------------------------------------------
https://factory42--c.eu3.visual.force.com/apex/VFPage
As you can see the the namespace prefix (sf42-prfxpe) is missed. Instead of prefix a '--c.' appears in the url. 

The correct url looks as the following:
https://factory42--sf42-prfxpe.eu3.visual.force.com/apex/VFPage

Any ideas to get formula working in the live org?
Thanks in advance!
Hi,
I have created a managed package. This package I installed in a test org successfully.
After that, I have implemented a "Post Install Script". Now it is impossible to install the package.
Even removing "Post Install Script" configuration does not have any affects.
I'm not able to delete the corresponding class. But I commented out all of the functions.
No luck. I still get an error email trying to install new package.

Any ideas?
Thank for reply in advance !

That's the class:

global class PostInstallScript implements InstallHandler {
    // start after installation methods
    global void onInstall(InstallContext context) {
        if(context.previousVersion() == null)
            startNewInstallation();

        // if(context.previousVersion().compareTo(new Version(1,0)) == 0)
        if(context.isUpgrade())
            startUpgrade();
        // if(context.isPush())
    }

    global void startNewInstallation(){
        writeVersionNumber();
    }
   
    global void startUpgrade(){
        writeVersionNumber();
    }

    private static void writeVersionNumber(){
    /*  no code  */
    }
}

Your request to install package "xyz" was unsuccessful. None of the data or setup information in your salesforce.com organization was affected.

If your install continues to fail, contact Salesforce CRM Support through your normal channels and provide the following information.

Organization: abc (00D24000000ZrBi)
User: Oleg Tuchscherer (00524000000HCj8)
Package: def (04tU00000001X9G)
Error Number: 575363182-26761 (-1283512546)

Package Install Failed

An error has occurred during a package install operation.
 

Hi,

 

we use Salesforce-to-salesforce feature successfully.

A new trigger must be implemented on Account.

This trigger has

* to start when an Account is transferred by S-to-S (Button "External sharing" was clicked)

* and to update all related objects, like Opportunity and some Custom Objects .

 

Why Account trigger? -> because where is no possibility to place a trigger for "PartnerNetworkRecordConnection" Object.

I did some tests and found out, that the "LastModifiedDate" field on Account is updated when "External Sharing" was clicked. No other Data is changed. 

 

QUESTIONS:

-------------------------

1) Do we realy have no other fields which are being updated by the system ? Or do we have possibly a flag on Account that set to e.g. "true" when Account is transferred by S-t-S?

2) Will the "AFTER UPDATE" trigger execute, when just "LastModifidDate" is changed?

 

Thanks!

 

 

Hi,

 

i have an apex batch for deleting different types of data.

So i have 3 objects (no releations to each other).

In the start method i build 3 search strings and would like to let run the execute method 3 times.

How to do that?

 

The following structure does not work:

global database.querylocator start(Database.BatchableContext bc){
        for(String query : batchHelper.buildSearchStrings())    
            return Database.getQueryLocator(query);
    }

 

Thank you for the help!

Hi,

I have trouble with creating HTML formatted EmailMessages by APEX.

Problem:

EmailMessage is created, but Salesforce does not display the label "HTML Body" in layout.

 

Example:
            sSubject = 'Some text';
            sBody = '<html><body><p>here comes the body</p></body></html>';      
           
            // Create an Email Message
            EmailMessage objEmailMessage = new EmailMessage(ParentID = objCase.ID,
                                                            MessageDate = datetime.now(),
                                                            Subject = sSubject,  
                                                            ToAddress = sToMail,
                                                            CcAddress = sToMailCC,
                                                            BCcAddress = sToMailBCC,
                                                            HtmlBody = sBody,
                                                            FromName = Userinfo.getName());
            objEmailMessage.FromAddress = Userinfo.getUserEmail();            
            
            insert objEmailMessage;      

 

Result:

I see the email message in Salesforce. Open this mesaage. Just "Text Body" is visible.

 

Do I miss anything? I need "HTML Body" to be visible.

Do you possibly have a soluton for me?

Thanks a lot!

Hi all,

 

i have a trouble with validating a changeset.

This changeset contains some VF Pages, custom labels, controllers, custom fields etc.

We also have translations (German) for all used design elements.

This changeset is uploaded into an other sandbox.

When validation the changeset the following message appears

 
Failed ( 1 )
API Name:  Case-de
Type:          CustomObjectTranslation
Problem:     Field feed_filter_case_notes does not exist on entity Case

 

What is feed_filter_case_notes ? Google does not know anything about this name.

Do you possible have a solution for me?

 

Just one thing: the Source Sandbox is Winter14. The target Sandbox is Summer14.

Hi,
i have installed a managed package in a Sandbox and in the Live Org.
"My Domain" is configured.
An Email Template contains a formula, computing a link: {!SUBSTITUTE(URLFOR('/apex/VFPage'),'http:','https:')}
Linkg points to a Visualforce Page.
Visualforce Page is a part of managed package.

SANDBOX: url created by the formula in the sandbox is correct
------------------------------------------------------------------------------------------------
https://factory42--sb42--sf42-prfxpe.cs17.visual.force.com/apex/VFPage

LIVE: url is wrong
------------------------------------------------------------------------------------------------
https://factory42--c.eu3.visual.force.com/apex/VFPage
As you can see the the namespace prefix (sf42-prfxpe) is missed. Instead of prefix a '--c.' appears in the url. 

The correct url looks as the following:
https://factory42--sf42-prfxpe.eu3.visual.force.com/apex/VFPage

Any ideas to get formula working in the live org?
Thanks in advance!
Hi,
I have created a managed package. This package I installed in a test org successfully.
After that, I have implemented a "Post Install Script". Now it is impossible to install the package.
Even removing "Post Install Script" configuration does not have any affects.
I'm not able to delete the corresponding class. But I commented out all of the functions.
No luck. I still get an error email trying to install new package.

Any ideas?
Thank for reply in advance !

That's the class:

global class PostInstallScript implements InstallHandler {
    // start after installation methods
    global void onInstall(InstallContext context) {
        if(context.previousVersion() == null)
            startNewInstallation();

        // if(context.previousVersion().compareTo(new Version(1,0)) == 0)
        if(context.isUpgrade())
            startUpgrade();
        // if(context.isPush())
    }

    global void startNewInstallation(){
        writeVersionNumber();
    }
   
    global void startUpgrade(){
        writeVersionNumber();
    }

    private static void writeVersionNumber(){
    /*  no code  */
    }
}

Your request to install package "xyz" was unsuccessful. None of the data or setup information in your salesforce.com organization was affected.

If your install continues to fail, contact Salesforce CRM Support through your normal channels and provide the following information.

Organization: abc (00D24000000ZrBi)
User: Oleg Tuchscherer (00524000000HCj8)
Package: def (04tU00000001X9G)
Error Number: 575363182-26761 (-1283512546)

Package Install Failed

An error has occurred during a package install operation.
 

Hi,

 

we use Salesforce-to-salesforce feature successfully.

A new trigger must be implemented on Account.

This trigger has

* to start when an Account is transferred by S-to-S (Button "External sharing" was clicked)

* and to update all related objects, like Opportunity and some Custom Objects .

 

Why Account trigger? -> because where is no possibility to place a trigger for "PartnerNetworkRecordConnection" Object.

I did some tests and found out, that the "LastModifiedDate" field on Account is updated when "External Sharing" was clicked. No other Data is changed. 

 

QUESTIONS:

-------------------------

1) Do we realy have no other fields which are being updated by the system ? Or do we have possibly a flag on Account that set to e.g. "true" when Account is transferred by S-t-S?

2) Will the "AFTER UPDATE" trigger execute, when just "LastModifidDate" is changed?

 

Thanks!

 

 

Hi,

 

i have an apex batch for deleting different types of data.

So i have 3 objects (no releations to each other).

In the start method i build 3 search strings and would like to let run the execute method 3 times.

How to do that?

 

The following structure does not work:

global database.querylocator start(Database.BatchableContext bc){
        for(String query : batchHelper.buildSearchStrings())    
            return Database.getQueryLocator(query);
    }

 

Thank you for the help!

Hi,

I have trouble with creating HTML formatted EmailMessages by APEX.

Problem:

EmailMessage is created, but Salesforce does not display the label "HTML Body" in layout.

 

Example:
            sSubject = 'Some text';
            sBody = '<html><body><p>here comes the body</p></body></html>';      
           
            // Create an Email Message
            EmailMessage objEmailMessage = new EmailMessage(ParentID = objCase.ID,
                                                            MessageDate = datetime.now(),
                                                            Subject = sSubject,  
                                                            ToAddress = sToMail,
                                                            CcAddress = sToMailCC,
                                                            BCcAddress = sToMailBCC,
                                                            HtmlBody = sBody,
                                                            FromName = Userinfo.getName());
            objEmailMessage.FromAddress = Userinfo.getUserEmail();            
            
            insert objEmailMessage;      

 

Result:

I see the email message in Salesforce. Open this mesaage. Just "Text Body" is visible.

 

Do I miss anything? I need "HTML Body" to be visible.

Do you possibly have a soluton for me?

Thanks a lot!

Hi guys,

 

Urgent issue here - I'm trying to build my test classes for a client app to deploy and I cannot see my code coverage. Yes, I know the coverage column has been removed from the setup page list, and I know that I have to open the Developer Console - run a test, then double click the test Run, then double slick the class to see the percentage.

 

When I open the class, and in the top left select the coverage from the drop down - it does not show line by line red/blue coverage despite saying that it has 57% coverage so far.

 

I ahve done this 7 times in chrome and firefox. No dice.

 

I am on CS17. EDIT: CS7

  • September 30, 2013
  • Like
  • 0

Hi all,

 

i have a trouble with validating a changeset.

This changeset contains some VF Pages, custom labels, controllers, custom fields etc.

We also have translations (German) for all used design elements.

This changeset is uploaded into an other sandbox.

When validation the changeset the following message appears

 
Failed ( 1 )
API Name:  Case-de
Type:          CustomObjectTranslation
Problem:     Field feed_filter_case_notes does not exist on entity Case

 

What is feed_filter_case_notes ? Google does not know anything about this name.

Do you possible have a solution for me?

 

Just one thing: the Source Sandbox is Winter14. The target Sandbox is Summer14.