• hitz
  • NEWBIE
  • 440 Points
  • Member since 2010

  • Chatter
    Feed
  • 17
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 32
    Questions
  • 105
    Replies

So I'm working on an application that includes some basic e-mail functionality. I've created an e-mail template and a custom object called EmailMessage__c with fields Subject__c and Body__c which are referenced in the template.

 

When I test it logged in as a system administrator, it works fine. But when I log in through the portal frontend as an end user (a profile based on "Overage High Volume Customer Portal"), the e-mail sends with a blank subject and body. Querying the database confirms that the EmailMessage__c object was saved and committed to the database with the correct values, but they weren't filled in.

 

I can only assume that this is a permissions issue somewhere, but I can't find anything wrong. Both System Administrator and our profile based on Overage High Volume Customer Portal have full permissions on the EmailMessage__c object, and I also ensured that it was listed as available for the customer portal, but it still sends blank messages.

 

Any idea what's going on?

Hello friend i am having a requirement in batch class two find difference between two fields in hours as well days. The data type of these two fields is Data Time one field name is "Email date" and other field name is "Current Date" and i need difference in Hours as well as in days

 

Any Help is Appreciated,

Thanks

Minkesh Patel

I am trying to create a package and getting the following error

 

"No testMethods found in the selected Apex code for the package "

 

this is all that is in the apex code.

 

 

public with sharing class CaseExtension {
    
    public Case mycase {get; set;}
    public User localUser {get; set;}
    
    
    public CaseExtension(ApexPages.StandardController stdController) {
        this.mycase = (Case)stdController.getRecord();
        localUser = [SELECT Id, Phone, Email, FirstName, LastName, CompanyName from User where Id =: System.UserInfo.getUserId() LIMIT 1];
        this.mycase.OwnerId = localUser.Id;
        
  }
    
}

 

Can someone help me with this as i'm not too sure how to resolve the problem?

 

Thanks!!!

 

Hi

 

I would like to post (share) a message on my Facebook Wall from my Application.

Does anyone know if it is doable?

 

If it is what is the right way to do so?

 

Thanks

 

 

Hi All,

 

I need to update the Multiple Detail Object Records based on the Master Record field update...

 

Master Object: RMG_Employee_Master__c

Master Field: Proposal_Status__c

 

Detail Object: Proposal__c

Detail Field: Status__c

 

Please Suggest..

 

trigger detailstatus1 on RMG_Employee_Master__c (after insert,after update)
{
 List<Proposal__c> ac = new List<Proposal__c>();
 Set<id> Ids = new Set<id>();
     for (RMG_Employee_Master__c o : Trigger.new) {
         Ids.add(o.Id);
        }
      Map<id, Proposal__c> owners = new Map<id, Proposal__c>([Select id,Status__c from Proposal__c Where Id in :Ids]); 

for (RMG_Employee_Master__c o : Trigger.new)
     {
        if(o.Proposal_Status__c != 'Closed')
             {
                 //Instantiate a new account and set it to the current opportunity parent. 
                 Proposal__c pc = owners.get(o.Id);
                 pc.Status__c = 'Closed';
                 ac.add(pc);
             }   
        
     }
     update ac;
     }

 

Hi,

 

Master Object > RMG_Employee_Master__c

Detail object > Proposal__c

Detail Object Field > Status__c

 

Under this master object, I have number of detail object records.

 

The functionality is something like when I create a new record in the Detail Object where Status__c is not equal to ‘Proposed’, than for all the other records [already created] Status__c should become ‘Closed’.

 

Please let me know is this can be achieved?? Thanks

  • January 27, 2011
  • Like
  • 0

Hi,

 

I need to constantly update the master field based on the detail field value i.e. a picklist field with multiple values.

 

Master Object > RMG_Employee_Master__c

Master Object Field > Proposal_Status__c

 

Child Object > Proposal__c

Child Object Field > Status__c

 

 

I am able to update the master field based on the detail field value. But how can  loop through the multiple detail records to set the value of one master field:

 

trigger proposalstatus on Proposal__c (after insert,after update)
{

   List<RMG_Employee_Master__c> opps = new List<RMG_Employee_Master__c>();
   List<ID> masterIds = new List<ID>();
   Map<ID, String> childDetailMap = new Map<ID, String>();
  
   for(Proposal__c c: Trigger.new)
    {
      masterIds.add(c.RMG_Employee_Code__c);
      childDetailMap.put(c.RMG_Employee_Code__c, (c.Status__c));
    }
    opps = [select id, Proposal_Status__c from RMG_Employee_Master__c where id in :masterIds];
 
   for(RMG_Employee_Master__c rem: opps)
    {
      rem.Proposal_Status__c = childDetailMap.get(rem.id);
    }
    if(opps.size() > 0)
    {
     Update opps;
     }
}

  • January 27, 2011
  • Like
  • 0

Hi,

 

Master Object > Master

Master Object Field > Detail

 

Child Object > Master__c

Child Object Field > Detail__c

 

 

 

 

to meet this requirement i have developed something like, i am able to update the master object field with the detail object field but not with the multiple detail object record. Please help....

 

trigger proposalstatus on Master__c (after insert,after update)
{

   List<Master> opps = new List<Master>();
   List<ID> masterIds = new List<ID>();
   Map<ID, String> childDetailMap = new Map<ID, String>();
  
   for(Master__c c: Trigger.new)
    {
      masterIds.add(c.RMG_Employee_Code__c);
      childDetailMap.put(c.RMG_Employee_Code__c, (c.Detail__c));
    }
    opps = [select id, Detail from Master where id in :masterIds];
 
   for(Master rem: opps)
    {
      rem.Detail = childDetailMap.get(rem.id);
    }
    if(opps.size() > 0)
    {
     Update opps;
     }
}

 

  • January 27, 2011
  • Like
  • 0

Been moving on with my triggers and classes but still hitting some walls on my way. Have this trigger and I'm almost sure the issue is with the " && " :

 

trigger tourchangeschedule on Event (before insert) {
  Set<Id> recordIds = new Set<Id>();
  Set<id> eventidhold = New Set<id>();
  List<Lead> leadsToUpdate = new List<Lead>();

  for(Event t:Trigger.new)
    if(t.subject=='tour' && t.Stages__c <> '30 days' && t.Stages__c <> '60 days')
      recordIds.add(t.whoid)&& eventidhold.add(t.Id);

  leadsToUpdate = [select id from lead where id in :recordIds];
  eventsgo = [select id, StartDateTime from event where id in :eventidhold];

  for(Lead l:leadsToUpdate && Event E:eventsgo)
    L.sales_cycle__C = 'Tour Scheduled' && L.tour_scheduled__C = E.StartDateTime;

  update leadsToUpdate;
}

 

Help much appreciated!

Hi,

 

I want to know the page load time for my created page ??

how should i know.

Please help .

 

thanks, sheffy

  • January 24, 2011
  • Like
  • 0

Hi,

 

In the default  'Contacts' tab, there is a 'Send an Email'  button in the Activity History section.

Clicking on the 'Send an Email' button brings up a nice VF page to send email.

 

I want a similar functionality in my app. How do I access the same VF page to send email?

 

thanks

svidyan

Hi Experts,

 

I am trying to export records using Apex data loader but found some issues. please refer below sample

 

Record In Salesforce

Transaction: Invoice# Amount Balance 1009988$346,748,512.48

$346,748,512.00

 

 


If i export same record using Apex data loader (abc.csv) then amount value got change to hexadecimal format.

"NAME","AKRITIV__AMOUNT__C"
"1009988","3.4674851248E8"

 

Please help. how can i fix this

 

  • September 28, 2013
  • Like
  • 0

Hello Experts,

 


Is there a possibility to view Account or any Other Customer/Standard Objects fields value on Task Screen using formula or workflow? Don't want to update via Apex Code class/Batch class.

  • June 11, 2013
  • Like
  • 0

Hi Experts,

 

I have schedulable batch class which updates few fields on Task Object every day. class working fine but issue here is that it will always change last modified date and Last Modified by. is there a way to stop automatically update Last Modified by and Last Modified Date ???

  • May 03, 2013
  • Like
  • 0

Hi Experts,

 

I have created method which sends email from Manage package. i have installed that manage package into Enterprise edition org. but issues here is that i am able to send maximum 1000 emails from the system in day. is this correct? or do i need to do some configurations ?

 

Please help.

  • May 01, 2013
  • Like
  • 0

Hi Experts,

 

I have created Manage package and i want to install it into our customer org production environment but i m getting below error

 

Your requested install failed. Please try this again.

None of the data or setup information in your salesforce.com organization should have been affected by this error.

 

Please help. Thanks in Advance.....

  • November 20, 2012
  • Like
  • 0

Hi Experts,

 

I have created Manage package and i want to install it into our customer org production environment but i m getting below error

 

Your requested install failed. Please try this again.

None of the data or setup information in your salesforce.com organization should have been affected by this error.

 

Please help. Thanks in Advance.....

  • November 20, 2012
  • Like
  • 0

Hello Experts,

 

I have a Batch process which runs after once record inserted into system (Calling batch class using trigger). some time it wroks properly but now from few days it gets automatically Aborted. Please Help I dont know why this is happening. Please help ASAP 

  • October 18, 2012
  • Like
  • 0

Hello Experts,

 

I have just created developer sandbox but i was not able to configure my custom settings it gives below stupid error

 

duplicate value found: SetupOwnerId duplicates value on record with id:xxxxxxxxx 

 

Please help ASAP

 

 

  • October 16, 2012
  • Like
  • 0

Hi Experts,

 

I am having visual force page which render results in PDF or EXCEL as requested but i having isuue in displaying currency symbols in PDF where field type is currency.

  • May 19, 2012
  • Like
  • 0

Hello Experts,

 

I have a javascript in static resource. How can I refer this from the onClick event of Custom Button (List button) on my custom object.

 

  • May 08, 2012
  • Like
  • 0

Hi Experts,

 

I have created one Schedulable global batch class which automatically sends an emails to Task's accounts contacts. so i have schedule that class to daily run on 1:00 am. but it will give an Below exception.

 

Package Visibility: Constructor is not visible: [SendMassEmail].<Constructor>()

 

---------- code  --------

 

global class SendMassEmail implements Database.Batchable<SObject>, Database.Stateful, Schedulable {
    // variable deleractions
    
    global SendMassEmail(){
      
      // nothing define  
    }
    
    global database.querylocator start(Database.BatchableContext bc){
    
        //  Fatching Task records.
    }
    
    global void execute(Database.BatchableContext bc, List<sObject> sObjs){
        // Factching Task's Accounts and its related contact
        // sendEmail();
    }
    
    global Boolean sendEmail() {
        // Select Email template based on task subject and send email
    }
    
    global void finish(Database.BatchableContext bc){
        System.debug('-------------- SendMassEmail FINISH ----------- ');
    }
    
    global void execute(SchedulableContext sc) {
        // call batch job
        SendMassEmail sme = new SendMassEmail();
        Database.executeBatch(sme,1);
    }
}

  • January 02, 2012
  • Like
  • 0

 

Hi Experts,

 

i have created Two workflows.

 

1) Work-flow on Account which created Task having subject "28Days Call Customer " when it matches with Criteria matches. it works good.

 

While in second workflow i want to update Task field value so i have created below work flow

 

2)  Work-flow on Task Which Update Task "Type" field Value to "Call" when Task is Created When Task subject Contains "Call" but it not works.

 

Why it is not working.

 

otherwise i will have to update through Trigger. 

  • October 25, 2011
  • Like
  • 0

Hi Experts,

 

i want to merge Account OwnerFax data in to Email Template there is no merge field is available in it how can i do that 

  • June 30, 2011
  • Like
  • 0

Hi,

 

is there any limiteations are there for Organization-Wide Addresses ?? means how many Organization-Wide Addresses we can create in one org [any org type ]?? is there any limit  ??

  • June 02, 2011
  • Like
  • 0

Hi,

 

is thare Force.com plugin is avaibale for netbeans ????

  • June 01, 2011
  • Like
  • 0

HI,Experts

 

can anybody konws how to check Email Attachment size [InboundEmail.BinaryAttachment] ??

 

  • May 17, 2011
  • Like
  • 0

HI,

 

I can not seen new service Cloud Console Application in my old Developement org. this feature only availbale for new org ??

 

  • May 16, 2011
  • Like
  • 0

Hi, Experts

 

I have Created one Formula (Text) field which display images  according to risk [red, green, yellow]. it works good in page layout means display image according to value but problem with field set.

 

i have created field set which contains that Formula (Text) field and some other fields set.

now i have created one VF page  which display value in field set using below code

 

<apex:pageBlockSection columns="2">
                       <apex:repeat value="{!$ObjectType.myObj__c.FieldSets.General_Detail}" var="mo">
                            <apex:outputField value="{!mobjId[mo]}"/>       
                       </apex:repeat>
                  </apex:pageBlockSection>

it displays other fields records good but it will not display image [it diaplays image path like <img src="green.gif" alt="abc"/>]

 

 

  • April 28, 2011
  • Like
  • 0

HI, All

 

I m Using developer free edition of force.com in that i m having user liceances for different profile. problem is that i have created clone porfile of Customer Portal Manager or High Volume Customer Portal but when i try to create new user in that i am not able to see that profile even also not able to see Customer Portal Manager or High Volume Customer Portal in User Licenses .....

 

i m just able to see only 3 user licences when i create new user [Salesforce Platform, Force.com - Free, Chatter Free   ]

 

how can i access that User Licenses ?????? is there any setting for that ????

  • March 26, 2011
  • Like
  • 0

Hi,

 

is there any good tutorial or blog is availabe for setup customer portal ......... ???

 

Thanks in advance

 

  • March 26, 2011
  • Like
  • 0

Hi Experts,

 

I am trying to export records using Apex data loader but found some issues. please refer below sample

 

Record In Salesforce

Transaction: Invoice# Amount Balance 1009988$346,748,512.48

$346,748,512.00

 

 


If i export same record using Apex data loader (abc.csv) then amount value got change to hexadecimal format.

"NAME","AKRITIV__AMOUNT__C"
"1009988","3.4674851248E8"

 

Please help. how can i fix this

 

  • September 28, 2013
  • Like
  • 0

when i am running the client application of bulk api in java.I am getting the following error:

Anyone there to help:

I took the client application from the bulk api developer guide.

http://www.salesforce.com/us/developer/docs/api_asynch/

Sample client application using java.


com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/u/28.0
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:113)
    at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:791)
    at com.sforce.soap.partner.PartnerConnection.<init>(PartnerConnection.java:315)
    at com.jeffdouglas.BulkLoader.getRestConnection(BulkLoader.java:278)
    at com.jeffdouglas.BulkLoader.runJob(BulkLoader.java:160)
    at com.jeffdouglas.BulkLoader.run(BulkLoader.java:57)
    at com.jeffdouglas.BulkLoader.main(BulkLoader.java:42)
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:132)
    at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:78)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    ... 6 more
Failed to send request to https://login.salesforce.com/services/Soap/u/28.0

 

Please help me i am stuck.

Thanks.:)

  • September 27, 2013
  • Like
  • 0

Hello Experts,

 


Is there a possibility to view Account or any Other Customer/Standard Objects fields value on Task Screen using formula or workflow? Don't want to update via Apex Code class/Batch class.

  • June 11, 2013
  • Like
  • 0

Hi Experts,

 

I have schedulable batch class which updates few fields on Task Object every day. class working fine but issue here is that it will always change last modified date and Last Modified by. is there a way to stop automatically update Last Modified by and Last Modified Date ???

  • May 03, 2013
  • Like
  • 0

Hi Experts,

 

I have created method which sends email from Manage package. i have installed that manage package into Enterprise edition org. but issues here is that i am able to send maximum 1000 emails from the system in day. is this correct? or do i need to do some configurations ?

 

Please help.

  • May 01, 2013
  • Like
  • 0

Hello:

 

I do a monthly Upsert via bulk upload (Apex Data Loader) of records on custom object Subscriber__c.

 

What I want to do is once the upsert is complete, delete any records that were not created or updated during he bulk Upsert process.

 

Here is the trigger I have written - and I am aware this may be terrible or not even close to what I need :)

 

trigger DeleteSubs on Subscriber__c(after insert, after update) {
 List<Id> lstId = new List<Id>();
 
for(Subscriber__c sub: Trigger.old){
        List<Subscriber__c> nolongersubs = [Select Id from Subscriber__c where LastModifiedDate<TODAY];
        delete nolongersubs;
    }
 
}

 When trying to insert a single record I am getting execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object:Trigger.DeleteSubs: line 4, column 1

 

Any help would be greatly appeciated.

 

Thanks,

 

Hampton

 

 

Hi Experts,

 

I have created Manage package and i want to install it into our customer org production environment but i m getting below error

 

Your requested install failed. Please try this again.

None of the data or setup information in your salesforce.com organization should have been affected by this error.

 

Please help. Thanks in Advance.....

  • November 20, 2012
  • Like
  • 0

Hi Experts,

 

I have created Manage package and i want to install it into our customer org production environment but i m getting below error

 

Your requested install failed. Please try this again.

None of the data or setup information in your salesforce.com organization should have been affected by this error.

 

Please help. Thanks in Advance.....

  • November 20, 2012
  • Like
  • 0

Hello Experts,

 

I have a Batch process which runs after once record inserted into system (Calling batch class using trigger). some time it wroks properly but now from few days it gets automatically Aborted. Please Help I dont know why this is happening. Please help ASAP 

  • October 18, 2012
  • Like
  • 0

Hi All,

 

I have the query [Select Id from Email Template where IsActive =true LIMIT 1]. This query is retreving the deleted record and causing problem.Email Template object do not have 'IsDeleted' field to check for the deleted records.

 

 

Please suggest how I can prevent query from retreiving deleted record.

 

Thanks,

Srilakshmi 

So I'm working on an application that includes some basic e-mail functionality. I've created an e-mail template and a custom object called EmailMessage__c with fields Subject__c and Body__c which are referenced in the template.

 

When I test it logged in as a system administrator, it works fine. But when I log in through the portal frontend as an end user (a profile based on "Overage High Volume Customer Portal"), the e-mail sends with a blank subject and body. Querying the database confirms that the EmailMessage__c object was saved and committed to the database with the correct values, but they weren't filled in.

 

I can only assume that this is a permissions issue somewhere, but I can't find anything wrong. Both System Administrator and our profile based on Overage High Volume Customer Portal have full permissions on the EmailMessage__c object, and I also ensured that it was listed as available for the customer portal, but it still sends blank messages.

 

Any idea what's going on?

Hi all

 

I  am using old version developer edition  how to upgrade to spring 12.

 

Hi Experts,

 

I am having visual force page which render results in PDF or EXCEL as requested but i having isuue in displaying currency symbols in PDF where field type is currency.

  • May 19, 2012
  • Like
  • 0

we have three objects A, B & C.

B and C are child objects of A. Is there an easy way in SF to find out how many A records have atleast one B record and one C record. and how many A records have only B records and not C records.

 

I know we can create roll up formula fields on A and run a query. But I don't want to create those fields unless there is no other alternative.

 

Thanks in advance.

Hello ! Frndz !!!!!!!!!!!!!!!!!!:smileyhappy: ;-) 

I am looking to encrypt some data using 3DES algorithm.

Is this possible in Apex ?

 

Any pointers would be greatly appreciated.

 

Thanks,

Sham

  • October 20, 2009
  • Like
  • 0

Hello All,

 

How do I enable  multi-currency support for my developer account?

 

any idea?

 

 

Thanks

Message Edited by Dowithforce on 10-20-2009 08:29 AM

I have a javascript in static resource. How can I refer this from the onClick event of Custom Button.

I would like to refer this as external javaScript source and use the functions. Please help me. thank you.