• Sachin10
  • NEWBIE
  • 80 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 76
    Questions
  • 68
    Replies
Hi All,
I would like to know at point exactly the EmailMessage record gets created.
I want to know the flow in which the records gets create in Email-To-Case.
Like First which record gets created. Like the case gets created and then Email Message or what is the flow.

If I write a trigger on Case and Email Message which one gets executed first during email-to-case scenario.

Any pointers will be helpful.
Many Thanks!
 
I would like to convert the pages in google sites into HTML Files or upload directly into Salesforce as Articles.
Is there any API or any tool that helps me in doing this?
Any pointers related to it would be highly appreciated. 
Hi All,
Can you please help me the best tools for importing articles apart from data loader and Import Article tools.
Is there any appexchange tool that helps with the import of articles?

Any pointers would be appreciated.
Hi All,
I would like Import Articles into salesforce using Import Article Tool from Google sites.
The Articles currently reside in google sites.
Are there any ways to export the content from Google Sites to Html OR directly to Salesforce.

Any pointers will be highly appreciated.
Hi Team,
We are building an IOS Mobile App via mobile SDK.
We have created a Connect App and Test Notification worked.
But when I'm trying to send the notification via Trigger using the below link:
https://developer.salesforce.com/docs/atlas.en-us.pushImplGuide.meta/pushImplGuide/pns_apex_trigger.htm
It is not working.

Can some one please help with any custom apex code that worked for sending push notification?
Appreciate any pointers regarding the same.

Many thanks.
 
Hi All,
I have a trigger on attachment object to update the case owner based on the attachment type.
But the owner is being reassigned to case default owner (under Support Settings)

I have tried the dml options but it didn't work.
Any pointers/workarounds will be highly appreciated.
Many thanks in advance
Hi All,
I would like to send push notifications to salesforce mobile app given by salesforce.
I looked into the documentation by salesforce, but couldn't succeed.

I have created the trigger given in the below link
 https://developer.salesforce.com/docs/atlas.en-us.pushImplGuide.meta/pushImplGuide/pns_apex_trigger.htm.
I have also configure the connected App as suggested in the below link:
https://developer.salesforce.com/docs/atlas.en-us.pushImplGuide.meta/pushImplGuide/pns_create_connected_app_android.htm
I have turned on the push notification settings in my developer org.
 
Any help on how to proceed further will be much appreciated.
Thanks
Hi All,
Can you someone post full working code for Lightning component with Streaming API.
All the sample code available online seems to have one or the other issue.

If some one has any latest working code, can you please share the same.
Many thanks in advance.
Really appreciate all your help.
I have a developer org in which I have developed a lot of stuff.
I changed the profile login IP ranges.
Now while I'm trying to access it I'm unable to. I can't even reset my password.

Any suggestions or pointers regarding the same are appreciated.
Many thanks.
Hi All,
I have a requirement where in I have to construct some if conditions dynamically.
1) I have custom setting 'Object Fields'  where in I give the fields that are to be synced.
2) I have class where I have a logic to sync 2 objects.
3) Inside the class, I need to have the logic to sync the fields on both the objects based on custom setting.

I have written the logic for existing fields, But I'm not sure if there is a easy way to handle if a new field is created.
Sample Code Snippet:
if(customSetting.contains(obj1.field1__c)){
obj2.field1__c = obj1.field1__c;
}
if(customSetting.contains(obj1.field2__c)){
 obj2.field2__c = obj1.field2__c;
}
As the above example says, I am able to handle for existing fields field1__c & field2__c, but not sure on how to handle if a new field is created 'field3__c'.
Any pointers or suggestions are highly appreciated.
Hi All,
I got a requirement to create a flex page in salesforce.
Can someone please throw light on what is it?
I'm aware of Visualforce page but this is something new to me.

Any pointers/suggestions are highly aprreciated.
Many thanks in advance.
Hi All,
I'm getting the below error while I try to insert an opportunity split record via apex.
System.DmlException: Upsert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, You can't create an Opportunity Split for a user unless they're part of the opportunity team.: [SplitOwnerId]

I have a trigger on opportunity Team Member which when deactivated the above code works.
Not sure what is the link between the Opportunity Team Member trigger and Opportunity Split creation.

Usually the team member gets automatically added/created while creating a opportunity split record.
But in this case, when opportunity team member trigger is active, It doesn't seem to work.

Any suggestions/pointers are most welcome.
Many thanks in advance
Hi All,
I have trigger on opportunity which creates opportuntiy Splits.
I have trigger on opportunity Team Member which sets the Access to 'Read/Write'.

If the OpportunityTeamMember trigger is Active, the opportunity Splits are not getting generated.
If the OpportunityTeamMember trigger is De-Actived, the opportunity Splits along with the team members are getting generated.

Unable to figure out the reason or workaround for the same.
I even tried to creating a process builder instead of Opportunity Team Member trigger but of no luck.

Many Thanks!
Hi All,
I would like to copy one list to another without the changes done in one list impacting the other.
Basically I will have 2 lists. One holds the initial values and the other list which will be changed on visualforce page.
At the end I want to compare the changes between the lists.

I tried the following ways to copy the list (addAll,Clone,and assignment,for loop). In all cases the if I change one list the other list is also changing its values.
Refer the below code snippet. When the accountList changes the initialAccountList also changes.

Visualforce Page:
<apex:page controller="ListCopyController">
  <apex:form >
  <apex:pageblock title="Accounts List Copy" id="pgblkId">
  <apex:pageBlockTable value="{!accountList}" var="acc">
  <apex:column headerValue="Name">
  <apex:inputField value="{!acc.name}"/>
  </apex:column>
  <apex:column headerValue="Rating">
  <apex:inputField value="{!acc.rating}"/>
  </apex:column>  
  </apex:pageBlockTable>
  <apex:pageblockButtons >
   <apex:commandButton value="FetchAccounts" action="{!fetchAccounts}" reRender="pgblkId"/>
  <apex:commandButton value="Save" action="{!save}" reRender=""/>
  </apex:pageblockButtons>
  </apex:pageblock>
  </apex:form>
</apex:page>


Apex Controller:
public class ListCopyController {

    public list<account> accountList{get;set;}
    public list<account> initialAccountList{get;set;}
    
    public ListCopyController(){
        accountList = new list<account>();
        initialAccountList = new list<account>();        
        
    }
    public void fetchAccounts(){
        accountList = [select id,name,rating from account limit 5];

        for(account acc: accountList){
            initialAccountList.add(acc);
        }
       // initialAccountList = accountList;
       // initialAccountList.addAll(accountList);
        //initialAccountList = accountList.clone();    
    }
    public void save(){
        system.debug('@@ initialAccountList'+ initialAccountList);
        system.debug('@@ accountList'+ accountList);
        update accountList;
    }

}

Looks simple but couldn't find anything relevant while searching.
Any pointers/suggestions are highly appreciated.
Many Thanks!
I have a requirement wherein I have to make a callout upon Pageload. 
The continuation request method is getting invoked, but not the callback.
The response is not getting displayed.

Steps to replicate the same:
1) I'm calling a controller method from action attribute of <apex:page> 
2) From that method I'm calling the continuation method.
3) For some reason, But the call back method is not getting invoked.

PS: The same thing is working if I call from a command button with render attribue

Any help/pointers would be highly appreciated.
Many Thanks!
 
Hi,
I have created a customList button to autopopulate lookup field. Something like below:
/800/e?CF00NA0000005JzZX={!object__c.name}&CF00NA0000005JzZX_lkid={object__c.Id}&retURL={!object__c.id}

The issue is I have custom field called Name. (API Name: Name__c)
When I click on this button, the standard name field is being overriden by the custom name field.( I made sure that I selected the standard name field).

Not sure how to prevent this. I cannot change the custom field API name/Label because it has many dependencies in triggers & classes etc.

So any workaround or suggestions are welcome.
Many thanks in advance :)
I have created  a Site and selected all the available "Site Standard Pages".
I have made 'IdeasHome' as my Active Site Home Page.
I have also enabled the Visualforce page on Site User Profile
But I'm getting the below error
User-added image

Pl help me in resolving the issue.
Many thanks in advance :)
Salesforce Documentation says
Every record has a Currency field that specifies the currency type for amounts in that record.

Where do I see the Currency Field?. I couldn't find it on any object.

If Advanced Currency Management is enabled,
Salesforce Documentation says, Dated exchange rates are not used in forecasting, currency fields in other objects, or currency fields in other types of reports.
So how the custom currency fields coversion rate is calculated?

Any pointers are highly appreciated.
Thanks in advance :)
Hi,
If have a User 'X' in salesforce.
How many different people can use the same user's login credentials at the same time?
Is there any limit on this

Many thanks in advance!
Hi,
I have a trigger and a class which implements a queueable interface.
When a record gets created the trigger invokes the queueable interface which will make a callout.

Now I'm writing the test class for the same.
In the test class I'm setting the mock response using httpMockCallout and inserting the record.
But I'm getting an exception, Callout loop not allowed.
Any Idea why this is happening?

As a workaround I set the response using test.Isrunningtest and it works fine.

Any pointers would be helpful.
Many Thanks
Hi All,
I have done translation for Layout Section Name on  person Account Layouts.
But the translations are not appearing in the UI.Though translations are given for that particular language the layout section name appears in English not in the translated Language.
This is happening only for Person Account Layout.For other objects like Asset this is working fine.

Any pointers/suggestions are welcome

FYR... I have changed the translations in the below place.
 User-added image
Hi Team,
We are getting the following error while deploying
Custom console component contains an invalid location.

Any pointers/suggestions are welcome

Many Thanks :)
Hi Team,
We are getting the following error while deploying
Custom console component contains an invalid location.

Any pointers/suggestions are welcome

Many Thanks :)
Hi All,
I have a trigger on attachment object to update the case owner based on the attachment type.
But the owner is being reassigned to case default owner (under Support Settings)

I have tried the dml options but it didn't work.
Any pointers/workarounds will be highly appreciated.
Many thanks in advance
Hi All,
I got a requirement to create a flex page in salesforce.
Can someone please throw light on what is it?
I'm aware of Visualforce page but this is something new to me.

Any pointers/suggestions are highly aprreciated.
Many thanks in advance.
Hi All,
I'm getting the below error while I try to insert an opportunity split record via apex.
System.DmlException: Upsert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, You can't create an Opportunity Split for a user unless they're part of the opportunity team.: [SplitOwnerId]

I have a trigger on opportunity Team Member which when deactivated the above code works.
Not sure what is the link between the Opportunity Team Member trigger and Opportunity Split creation.

Usually the team member gets automatically added/created while creating a opportunity split record.
But in this case, when opportunity team member trigger is active, It doesn't seem to work.

Any suggestions/pointers are most welcome.
Many thanks in advance
Hi All,
I would like to copy one list to another without the changes done in one list impacting the other.
Basically I will have 2 lists. One holds the initial values and the other list which will be changed on visualforce page.
At the end I want to compare the changes between the lists.

I tried the following ways to copy the list (addAll,Clone,and assignment,for loop). In all cases the if I change one list the other list is also changing its values.
Refer the below code snippet. When the accountList changes the initialAccountList also changes.

Visualforce Page:
<apex:page controller="ListCopyController">
  <apex:form >
  <apex:pageblock title="Accounts List Copy" id="pgblkId">
  <apex:pageBlockTable value="{!accountList}" var="acc">
  <apex:column headerValue="Name">
  <apex:inputField value="{!acc.name}"/>
  </apex:column>
  <apex:column headerValue="Rating">
  <apex:inputField value="{!acc.rating}"/>
  </apex:column>  
  </apex:pageBlockTable>
  <apex:pageblockButtons >
   <apex:commandButton value="FetchAccounts" action="{!fetchAccounts}" reRender="pgblkId"/>
  <apex:commandButton value="Save" action="{!save}" reRender=""/>
  </apex:pageblockButtons>
  </apex:pageblock>
  </apex:form>
</apex:page>


Apex Controller:
public class ListCopyController {

    public list<account> accountList{get;set;}
    public list<account> initialAccountList{get;set;}
    
    public ListCopyController(){
        accountList = new list<account>();
        initialAccountList = new list<account>();        
        
    }
    public void fetchAccounts(){
        accountList = [select id,name,rating from account limit 5];

        for(account acc: accountList){
            initialAccountList.add(acc);
        }
       // initialAccountList = accountList;
       // initialAccountList.addAll(accountList);
        //initialAccountList = accountList.clone();    
    }
    public void save(){
        system.debug('@@ initialAccountList'+ initialAccountList);
        system.debug('@@ accountList'+ accountList);
        update accountList;
    }

}

Looks simple but couldn't find anything relevant while searching.
Any pointers/suggestions are highly appreciated.
Many Thanks!
I have a requirement wherein I have to make a callout upon Pageload. 
The continuation request method is getting invoked, but not the callback.
The response is not getting displayed.

Steps to replicate the same:
1) I'm calling a controller method from action attribute of <apex:page> 
2) From that method I'm calling the continuation method.
3) For some reason, But the call back method is not getting invoked.

PS: The same thing is working if I call from a command button with render attribue

Any help/pointers would be highly appreciated.
Many Thanks!
 
Salesforce Documentation says
Every record has a Currency field that specifies the currency type for amounts in that record.

Where do I see the Currency Field?. I couldn't find it on any object.

If Advanced Currency Management is enabled,
Salesforce Documentation says, Dated exchange rates are not used in forecasting, currency fields in other objects, or currency fields in other types of reports.
So how the custom currency fields coversion rate is calculated?

Any pointers are highly appreciated.
Thanks in advance :)
Hi,
I have a trigger and a class which implements a queueable interface.
When a record gets created the trigger invokes the queueable interface which will make a callout.

Now I'm writing the test class for the same.
In the test class I'm setting the mock response using httpMockCallout and inserting the record.
But I'm getting an exception, Callout loop not allowed.
Any Idea why this is happening?

As a workaround I set the response using test.Isrunningtest and it works fine.

Any pointers would be helpful.
Many Thanks
What happens during instantiation?
What are we trying to do by instantiating?


What is the difference
when I declare
List<Account> accntList = new List<Account>();
and when I declare 
List<Account> accntList

Can someone please explain what happens with instantiation??

Many Thanks!

I have a Visualforce Page with standardController(Case) & Extensions

Can we use this Visualforce Page in WebtoCase?
I would like to have this VisualforcePage in my Company's Website.

Any poniters are welcome.
Many Thanks

I have a string value that gets dispalyed in Visualforce 2011-10-18 02:29:54
I want to convert this into date.

I tried using outputText but i'm geetting the below error:
The value attribute on <apex:outputText> is not in a valid format. It must be a positive number, and of type Number, Date, Time, or Choice.

Psuedo Code:
<apex:outputText value="{0, date, MMMM d','  yyyy}">
<apex:param value="{!dateTimeVal}"/>
</apex:outputText>

Converting it into time format in the apex controller is NOT a viable option in my case.
So please help the string to get it formatted in the VF page itself.

Any pointers/help is much appreciated.
Many thanks in advance!
Hi,
I would like to convert Date to String in  DD-MM-YYYY format  in my controller Class

I can easily convert it using format method if it is DateTime but not Date.

If I use the corresponding Date functions I'm not getting the format directly
For Eg:
date todayDate = system.today();
Now if I use todayDate.day()  I get 4 not 04.
So again I need to convert this into DD format.

Is there any easy approach to convert Date to String in DD-MM-YYYY format?
Many thanks in advance!!