• shrutiiiii
  • NEWBIE
  • 20 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 21
    Questions
  • 21
    Replies
Hi!

I'm have developed a managed released package. Passed the security review. In the next release, I want to add a force.com site because in package we are providing a form which is supposed to be fetched through a site. Till our latest release we are only adding the page to the package and then configuring the sire after installing the package in customer's Salesforce org. But this is sometimes causing problem, as form submission is not working due to some permission issues in site profile. So instead of configuring the site after package installation, we want to provide a fully configured force.com site in the package. Is this possible?

Thanks in advance!!
Shruti
Hi,

We have developed a managed package (security review passed). There is a requirement where customer (who will be installing the package) should be able to customize a visualforce page layout. This VF page will a Contract signing page so each company will be having their separate logo, css, font style etc.

So the option we decided is we'll provide a Word document which will be actually a tempalte for VF page. This Word doc will be like a Salesforce email template with merge fields where user can specify which header they want, what text (terms and condition), plus can change the merge field position etc.

In Salesforce email template with merge fields, after email is sent, the recepient sees the same body that is there in email template plus the merge fields replaced with the actual value. I need the same functionality using a Word doc ( template) and VF page and apex.

Can any Salesforce expert help me into this? I am not able to think of any ideas to implement this, but I'm sure there are many Salesforce experts that can help me into this.

Thanks in advance!
Shruti
Hello,

We have develoepd a managed package, in which we want to include Contract management feature (sending contract, payment, send pdf, updates in SF etc). I want to know what all extra features I'll get if I use standard Contract object? Which I will not get if I create a new custom object? We are thinking to create a custom object because it is more flexible if product (managed package) is concerned.

Please tell me what should I prefer. Few things I know that we get on standard Contract i.e. activating, locking it down etc. Though I'm not sure what Activate button exactly does.

Please help me understand all features that std Contract object offers.

Thanks in advance!
Shruti
Hello,

I have a VF page in my production org and a lot of records are getting fetched when I'm hitting Submit. Since yesterday the page is showing this error and I don't have any idea of how to resolve that.

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using salesforce.com!

Error ID: 2024540060-2356091 (-1299140583)

Can anyone tell me what is the reason of this error? Because in Sandbox I am not getting this even when no of records are larger.

Thanks,
Shruti
Hi,

While capturing a lead by Lead Capture Form we are checking whether Lead exists in existing accounts data. For this we are reducing the Lead compnay name by exluding few keywords (Inc, Technology, Llc etc) and then searching it in Accounts using like query.

e.g. Compnay name of inserted Lead is "Macro Tech Inc" then reduced compnay name is "macro" and SOQL query is "Select Id from Account where Name Like '%macro%'". Query returns these 2 companies - Macronetics and Macro Technology. Our code then picks first compnay i.e. Macronatics. Which is wrong, 'Macro Tech Inc' and 'Macronetics' are different companies. So there is requirement to search by whole work. %macro% returns all Acounts where the string is a substring of any account name.

Please help in writing the query to get accounts where I can search by whole word to find near match. Or do you have any better idea to search for near match of account?

Thanks,
Shruti
Surprsing!!!

Yesterday I installed a managed released package (not published on appExchange, submitted for review) on a Salesforce sandbox EE org. But installation failed because custom tab limit was exceeded. But package components are not considered against Salesforce limits right??? There are already 60-70 custom tabs in this org, most of them are created by a package. So for sure they were not considered in Salesforce limit - i.e. limit of 25 custom tabs. Then why installation of my managed package failed? I have no clue. Can anyone please help me into this?

This is the email that I got:

Your request to install package "<packageName>" 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: xxx
User: xxx
Package: xxx

Problem:

1.  Custom Tab Limit Exceeded
You've exceeded the maximum number of custom tabs allowed in your organization. (Required: 13, Available: 5) To learn about options for increasing the custom tab limit, please contact your administrator or salesforce.com.



Custom Tab Limit Exceeded

You've exceeded the maximum number of custom tabs allowed in your organization. (Required: 13, Available: 5) To learn about options for increasing the custom tab limit, please contact your administrator or salesforce.com.

Thank You,
salesforce.com
Hi,

I'm working on a managed package. I submitted for the security review and first time it got rejected. So I made the changes in the app and resubmitted the package with the same steps as I did before when submitted first time.

But after submitting 2nd time, I did not get any confirmation email for 3 weeks. So I submitted a case, and then I got an email saying "<packageName> has been submitted for security review".

So is it necessary to submit a case after we submit for the security review for 2nd time and onwards?

Thanks,
Shruti
Hi!


2 days back submitted a salesforce managed package for the security review. Point of contact given is me.


I'm concerned about Qualitative round (question and answer round to review policies and procedures). The package is mainly developed under my supervision. But do I need to know each and every line of code? What else? I'm not finding anything on forums regarding this round. If someone from Salesforce call me, can it be a group call? i.e. my 1-2 group members? Or one-to-one? Though I'm familier with all modules in package, please tell me what all things I need to prepare with? So that there will be minimum delay in approval.


Thanks,
Shruti
I'm working on a package development, still in beta. I really want to know whether 'Managed Beta' can be submitted for the security review or not? 

I went through this discussion - https://developer.salesforce.com/forums/ForumsMain?id=906F00000008u7IIAQ. But its very old and I'm still not sure about this.

Thanks!
Hi!

I'm working on a package development. I'm writing apex code to send mass emails. Can anyone please answer me following questions:

1) What is mass email batch size limit (External Address Limit per Mass Email) in Partner Developer Edition?
2) What is daily mass email limit in Partner Developer Edition?
3) What is mass email batch size limit (External Address Limit per Mass Email) in Partner Enterprise Edition?
4) What is daily mass email limit in Partner Enterprise Edition?

Please answer me above questions. I'm really needing it.

Thanks in advance!
Hii,
Can we add dashboard filter using apex code? How?

Sample dashboard filter
Hi!

I wrote a trigger on Lead to create a task for the Lead owner and notify him about the task creation. Here is the code,

List<task> lNewTasks =new List<task>();
Database.DMLOptions dmlo = new Database.DMLOptions();
dmlo.EmailHeader.triggerUserEmail = true;
Task tsk = new Task(Subject = 'Follow Up Lead test',Ownerid = Lead.Owner.ID ,whoid =Lead.ID,ActivityDate=date.today().adddays(1), Type='Phone' );
database.insert(tsk, dmlo);

But facing following issues:
1) Sometimes email not sent out. I'm just not getting what is the logic for sending/not sending the email notification on task creation. An email should go out each time task is created with this logic.
2) In email body Lead Name is null. See:
New Task

To: Peter Carmasino

Shruti Gujarathi has assigned you the following new task:

Subject: Follow Up Lead
Lead: null
Due Date: 10/21/2014
Priority: Normal

For more details, click the following link:

https://ap1.salesforce.com/<Task.ID>

Can anyone help me into this? Why Lead is null in the email sent after task is created? We can not handle this email, so I don't know what else do I need to do in apex to have the Lead name in email?

Thanks in advance!!!
Hello!

Is there any way to check salesforce remaining mass email limit in advance? i.e. count of emails that I can further send through mass email today?

Or I'll got to know about this only when there is an exception while sending mass emails from salesforce? - MASS_EMAIL_LIMIT_EXCEEDED

Thanks in advance
I have used VF charting to display a meter guage chart. I'm passing minimum and maximum range for chart axis by VF tag properties e.g. <apex:axis type="Gauge" position="gauge"  minimum="0" maximum="1000000" steps="3" margin="-10"></apex:axis>.. Here on Guage chart I want to display these axis values in shorten format. 

e.g. 1000 -> 1k, 1000000->1M .. etc

Is there any way to control axis values?
Hi!

I have a client requirement:

Add a button on Contact (or Account) to copy over Account Billing Address and overwrite Contact Mailing Address, and Account Shipping Address to Contact Other Address.

For this rather than coding I'm searching for the available appExchange app. Is there an existing app available for this purpose??

Thanks
Hi,

After a process step is approved, I'm sending an email to the approver. In that I need to display all approved process steps in that process instance with date/time value of when all process steps are approved. Can anyone help me into this.

Approval history related list

I can query the approval step approver and comments - 

SELECT Actor.userRole.Name, OriginalActor.Name, OriginalActor.Title, StepStatus, comments,
                 ProcessInstance.CompletedDate, ElapsedTimeInDays, ElapsedTimeInHours, ElapsedTimeInMinutes
                 FROM ProcessInstanceStep where ProcessInstance.TargetObjectId=:<targetObjId>
                 and stepStatus='Approved'

But could not get the approval date.

Thanks in advance!

I'm working on creating a managed package. In my managed package, there is a global virtual class and a method defined. I installed the beta version of package to a test organization and created an another class which is inherited from the package class. In this class I overriden the method.
e.g. Package class:
global class ManagedPackageInheritance { 
    global virtual class VirtualClass {
        global virtual void foo () {
            System.debug('#Foo from Managed Package !');
        }
    }
}

Inherited apex class in test org:
global class PlayVirtualInheritance extends namespace.ManagedPackageInheritance.VirtualClass {
   // override the virtual method
   global override void foo() {
        super.foo();
        System.debug('#Foo from Target Org !');
    }
}

So my question is, while calling the method 'foo', I want to pass the class instance name as a parameter. Something like this:

global class clsInvoke{
        public void invokeFoo(String className)       ///namespace.ManagedPackageInheritance.VirtualClass OR PlayVirtualInheritance
        {
                  //here call method foo() from the either class depending on the class name passed
        }
}

I think I need to use 'Type' class methods. But not sure how? I want to do this, because suppose the client/customer who has installed our package does not want the functionality provided by us, and they want to implement their own functionality. So the client will inherit our class and override the method. And then there is no need to modify the method invokation part.

Can anyone help me in this?
The company I work for is building a managed force.com package.

I logged in to parter portal to create 2 test orgs - Partner Developer Edition (for development) and Enterprise Edition (for testing). All the other partner portal users (the developers) will also create their own development orgs. But I'm worried about how can we work on the same package using different org? How would we maintain/merge all developments done in different environments (objects, tabs, apex, vf, files, triggers, workflows, data, metadata etc) to a single dev org?

Can someone explain this with an example? How does package development take place, as I'm sure in all packages all the developers of a package have their own dev org. And then they merge the changes, and then after testing package gets released.
Hi,

I have created an Account Record Type say 'Exhibit'. I assigned it to System Admin profile and created few Accounts using 'Exhibit' record type.

Now I want assign default Master record type to those Accounts. I modified System Admin profile to use Master record type as default for Accounts. I'm trying to update the Account Record Type from Exhibit to Master by code / data loader, but I'm not able to do that.

For Master record type, record type Id will be null right? But when I'm assigning null by code and updating Accounts, record type is not getting updated to Master. How can I do this by data loader?

Can anyone please help me on this?

Thanks!
Shruti

I am working on SF - Jasper integration using webservice API in apex. Here, what I want to do is - get the Jasper report from webservice response and display the report on visualforce page.

 

I got the response for requested report from Jasper which includes an image and HTML part for that image. 

 

I tried to handle the response as String i.e.. HttpResponse.getBody(). But, I found some data loss of image. Hence, I converted response into Hex i.e. EncodingUtil.convertToHex(HttpResponse.getBodyAsBlob()). 

 

Response is multipart/related response. To get the image and HTML, I splitted it by boundary string and got the png image in Hex. For displaying this on visualforce, I need to convert it to Base64 so that, I could show it by embedding into Html i.e. <img src="data:image/png;base64,base64_string" alt=""/>. Here, I am not finding anything in Salesforce apex, to convert Hex to Blob so that, I could convert Blob to Base64.

 

Please, help me over this.

Hi!

I'm have developed a managed released package. Passed the security review. In the next release, I want to add a force.com site because in package we are providing a form which is supposed to be fetched through a site. Till our latest release we are only adding the page to the package and then configuring the sire after installing the package in customer's Salesforce org. But this is sometimes causing problem, as form submission is not working due to some permission issues in site profile. So instead of configuring the site after package installation, we want to provide a fully configured force.com site in the package. Is this possible?

Thanks in advance!!
Shruti
Hi,

We have developed a managed package (security review passed). There is a requirement where customer (who will be installing the package) should be able to customize a visualforce page layout. This VF page will a Contract signing page so each company will be having their separate logo, css, font style etc.

So the option we decided is we'll provide a Word document which will be actually a tempalte for VF page. This Word doc will be like a Salesforce email template with merge fields where user can specify which header they want, what text (terms and condition), plus can change the merge field position etc.

In Salesforce email template with merge fields, after email is sent, the recepient sees the same body that is there in email template plus the merge fields replaced with the actual value. I need the same functionality using a Word doc ( template) and VF page and apex.

Can any Salesforce expert help me into this? I am not able to think of any ideas to implement this, but I'm sure there are many Salesforce experts that can help me into this.

Thanks in advance!
Shruti
Hello,

We have develoepd a managed package, in which we want to include Contract management feature (sending contract, payment, send pdf, updates in SF etc). I want to know what all extra features I'll get if I use standard Contract object? Which I will not get if I create a new custom object? We are thinking to create a custom object because it is more flexible if product (managed package) is concerned.

Please tell me what should I prefer. Few things I know that we get on standard Contract i.e. activating, locking it down etc. Though I'm not sure what Activate button exactly does.

Please help me understand all features that std Contract object offers.

Thanks in advance!
Shruti
Hello,

I have a VF page in my production org and a lot of records are getting fetched when I'm hitting Submit. Since yesterday the page is showing this error and I don't have any idea of how to resolve that.

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using salesforce.com!

Error ID: 2024540060-2356091 (-1299140583)

Can anyone tell me what is the reason of this error? Because in Sandbox I am not getting this even when no of records are larger.

Thanks,
Shruti
Hi,

While capturing a lead by Lead Capture Form we are checking whether Lead exists in existing accounts data. For this we are reducing the Lead compnay name by exluding few keywords (Inc, Technology, Llc etc) and then searching it in Accounts using like query.

e.g. Compnay name of inserted Lead is "Macro Tech Inc" then reduced compnay name is "macro" and SOQL query is "Select Id from Account where Name Like '%macro%'". Query returns these 2 companies - Macronetics and Macro Technology. Our code then picks first compnay i.e. Macronatics. Which is wrong, 'Macro Tech Inc' and 'Macronetics' are different companies. So there is requirement to search by whole work. %macro% returns all Acounts where the string is a substring of any account name.

Please help in writing the query to get accounts where I can search by whole word to find near match. Or do you have any better idea to search for near match of account?

Thanks,
Shruti
Surprsing!!!

Yesterday I installed a managed released package (not published on appExchange, submitted for review) on a Salesforce sandbox EE org. But installation failed because custom tab limit was exceeded. But package components are not considered against Salesforce limits right??? There are already 60-70 custom tabs in this org, most of them are created by a package. So for sure they were not considered in Salesforce limit - i.e. limit of 25 custom tabs. Then why installation of my managed package failed? I have no clue. Can anyone please help me into this?

This is the email that I got:

Your request to install package "<packageName>" 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: xxx
User: xxx
Package: xxx

Problem:

1.  Custom Tab Limit Exceeded
You've exceeded the maximum number of custom tabs allowed in your organization. (Required: 13, Available: 5) To learn about options for increasing the custom tab limit, please contact your administrator or salesforce.com.



Custom Tab Limit Exceeded

You've exceeded the maximum number of custom tabs allowed in your organization. (Required: 13, Available: 5) To learn about options for increasing the custom tab limit, please contact your administrator or salesforce.com.

Thank You,
salesforce.com
Hi!

I wrote a trigger on Lead to create a task for the Lead owner and notify him about the task creation. Here is the code,

List<task> lNewTasks =new List<task>();
Database.DMLOptions dmlo = new Database.DMLOptions();
dmlo.EmailHeader.triggerUserEmail = true;
Task tsk = new Task(Subject = 'Follow Up Lead test',Ownerid = Lead.Owner.ID ,whoid =Lead.ID,ActivityDate=date.today().adddays(1), Type='Phone' );
database.insert(tsk, dmlo);

But facing following issues:
1) Sometimes email not sent out. I'm just not getting what is the logic for sending/not sending the email notification on task creation. An email should go out each time task is created with this logic.
2) In email body Lead Name is null. See:
New Task

To: Peter Carmasino

Shruti Gujarathi has assigned you the following new task:

Subject: Follow Up Lead
Lead: null
Due Date: 10/21/2014
Priority: Normal

For more details, click the following link:

https://ap1.salesforce.com/<Task.ID>

Can anyone help me into this? Why Lead is null in the email sent after task is created? We can not handle this email, so I don't know what else do I need to do in apex to have the Lead name in email?

Thanks in advance!!!
Hello!

Is there any way to check salesforce remaining mass email limit in advance? i.e. count of emails that I can further send through mass email today?

Or I'll got to know about this only when there is an exception while sending mass emails from salesforce? - MASS_EMAIL_LIMIT_EXCEEDED

Thanks in advance
Hi!

I have a client requirement:

Add a button on Contact (or Account) to copy over Account Billing Address and overwrite Contact Mailing Address, and Account Shipping Address to Contact Other Address.

For this rather than coding I'm searching for the available appExchange app. Is there an existing app available for this purpose??

Thanks
I'm working on creating a managed package. In my managed package, there is a global virtual class and a method defined. I installed the beta version of package to a test organization and created an another class which is inherited from the package class. In this class I overriden the method.
e.g. Package class:
global class ManagedPackageInheritance { 
    global virtual class VirtualClass {
        global virtual void foo () {
            System.debug('#Foo from Managed Package !');
        }
    }
}

Inherited apex class in test org:
global class PlayVirtualInheritance extends namespace.ManagedPackageInheritance.VirtualClass {
   // override the virtual method
   global override void foo() {
        super.foo();
        System.debug('#Foo from Target Org !');
    }
}

So my question is, while calling the method 'foo', I want to pass the class instance name as a parameter. Something like this:

global class clsInvoke{
        public void invokeFoo(String className)       ///namespace.ManagedPackageInheritance.VirtualClass OR PlayVirtualInheritance
        {
                  //here call method foo() from the either class depending on the class name passed
        }
}

I think I need to use 'Type' class methods. But not sure how? I want to do this, because suppose the client/customer who has installed our package does not want the functionality provided by us, and they want to implement their own functionality. So the client will inherit our class and override the method. And then there is no need to modify the method invokation part.

Can anyone help me in this?

I am working on SF - Jasper integration using webservice API in apex. Here, what I want to do is - get the Jasper report from webservice response and display the report on visualforce page.

 

I got the response for requested report from Jasper which includes an image and HTML part for that image. 

 

I tried to handle the response as String i.e.. HttpResponse.getBody(). But, I found some data loss of image. Hence, I converted response into Hex i.e. EncodingUtil.convertToHex(HttpResponse.getBodyAsBlob()). 

 

Response is multipart/related response. To get the image and HTML, I splitted it by boundary string and got the png image in Hex. For displaying this on visualforce, I need to convert it to Base64 so that, I could show it by embedding into Html i.e. <img src="data:image/png;base64,base64_string" alt=""/>. Here, I am not finding anything in Salesforce apex, to convert Hex to Blob so that, I could convert Blob to Base64.

 

Please, help me over this.

Hi,

 

    I have a requirement, where in I need to assign the text that is present in Comments field of Steps in ProcessInstance to Approved Comments field of Opportunity.  So, kindly suggest a solution to the above mentioned problems.  

 

 

Trigger:


trigger ApprTrigger on Opportunity (after insert,before update) {
Opportunity [] o = Trigger.new;
ApprProcess.ProcessInst(o);
}

 

 

 

Apex Class: 

 

 

 

public class ApprProcess

{
public static void ProcessInst(Opportunity [] o1)
{
for(Opportunity  o2:o1)
{
ProcessInstance [] op = [SELECT Id,Status,(SELECT Id, StepStatus, Comments FROM Steps)FROM ProcessInstance limit 1];
for (ProcessInstance op1 : op)
{
if(op1.Status == 'Approved')
{
o2.Approved_Comments__c = op1.ProcessInstanceStep.comments;
}
}
}  
}

 

 


 

The reference site that I have used is http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_process.htm

 

 

When I am saving the above class I am getting the following error.

ErrorError: Compile Error: Invalid foreign key relationship: ProcessInstance.ProcessInstanceStep at line 12 column 27

 

 

So, can anyone suggest a solution for the above mentioned problem.

 

 

Regards

 

Arun


 


 

We have a Approval Processees developed within Salesforce on Opportunity. However, since Salesforce does not provide any reporting capabilities on these Processees, we are going to populate different object to then use for reporting, on the Opp Trigger.

 

We can get most of the information from the Process related objects within Salesforce, but I do not see the name of the Steps or Process in these objects.

 

Is there a way to get the name of the Processes Steps and Processes Name, which we would to display in our reports, either by doing SOQL or by using Approval related APIs.

 

Thanks

 

Regards.

 

  • October 01, 2009
  • Like
  • 0
Hi,
 
I perform the Functional Admin for my org and currently all error emails generated from Apex triggers go to the Apex Developer Admin.
 
Since i have taken over his responsibilities I want to receive the same rather than him.
 
Can anyone help me in changing this? I am thinking there is some place on the UI where i can change the current email address to mine so as to receive the same.
 
Thanks