• sandy sfdc
  • NEWBIE
  • 40 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 22
    Replies
Hi,
I need to give Edit/View permission for custom fields user wise.So editing profile from Metadata api is not work out for me.
can u suggest me how to give FLS using permission set from Metadat API.
Hi,

Creating more custom fields in SF is suggestable in package level ??

My requirement is : We have 150+ custom field for leads.Custmer needs to filter out the leads based on any of these custom fields values.Please suggest us the possibility ways. 
Hi all,

How to define http callout in UninstallHandler.
Hi All
Multi-Select Picklist field arrow buttons when System Administrator language is English(Default)User-added image
After System Administrator language changed to some other language (like Germany.....)the arrow buttons are changed like this..
User-added image
How to overcome this to remain the Arrow buttons same even language is changed.
                               OR
Im trying to replace the arrow butons with some Custom Image and Successfully done.But while i changed the System Administrator Language the same thing is happening.
Please help on this.
 
Hi,
we have Lead trigger in managed package,one of my clients(they have their own trigger on Lead also) getting "Error:System.LimitException:MANAGEDPACKAGE NAME: Too many SOQL queries:101 (MANAGEDPACKAGE NAME)" in their production during the lead conversion at Converted Status field.But we didn't get any errors from other users who are in production.

can any one clarify us..root cause of this error.

Here the propblem is only one user getting this error at some time during Lead Conversion not all the time...

our triggers also Bulkified,no soql in loops..but the user getting error with my managed package namespace.

Please help us to know where the issue is comming from package trigger or clients trigger....and also soql limits consider for managed package triggers??..
Hi,
 Duplicate alert

As shown in the image i need to get the possible duplicate records when i am inserting record from apex class or Api.

when i am executing from apex class with the following code
Account ll =  new lead();
ll.Name = 'Burlington Textiles Corp of America';
insert ll;

it showing error without possibilities like this
User-added image

Please help on this.
Hi All,

I got the below runtime error,please suggest on this.

Apex script unhandled trigger exception by user/organization: 00570000004Tasp/00D900000008xzp

Opportunitytrigger: execution of BeforeUpdate

caused by: System.QueryException: List has no rows for assignment to SObject

Trigger.Opportunitytrigger: line 3, column 1

My Trigger Code is like:
trigger OpportunityTrigger on Opportunity(before insert,before update,after insert , after update , before delete) 
{
    User validuser=[select Namespace.Active__c,Namespace.Pset__c,Namespace.code__c from User where Id=:UserInfo.getUserId()];

   if(validuser.Namespace.Active__c==true && validuser.Namespace.Pset__c==true && validuser.Namespace.code__c!=null)
   {

      //code

    }
Hi,
I need to send Lead information to salesforce from Php with AssignmentRule,can anyone guide how to implement below apex logic from Api(php) 

Database.DMLOptions dmo = new Database.DMLOptions();
dmo.assignmentRuleHeader.useDefaultRule= true;
Lead l = new Lead(company='Facebook', lastname='Smith');
l.setOptions(dmo);
insert l;


My PhP sample code:

define("SOAP_CLIENT_BASEDIR", "../../soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');
require_once ('../userAuth.php');
try {
  $mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
  $fields = array (
     'FirstName' => 'John',
    'LastName' => 'Smith',
    'Phone' => '510-555-5555',
    'Company' => 'Facebook'
);
$sObject = new SObject();
$sObject->fields = $fields;
$sObject->type = 'Lead';
$createResponse = $mySforceConnection->create(array($sObject));
print_r($createResponse);


 
Hi all,

When i am Upgrading Managed package in my org(production) i'm getting Error like.. 
Screen Shot of Error while package installing

But,i'm succeded upgrading in some orgs.
Plz tell me what are the causes to getting this error..
Hi,

we need to avoid duplicate insertion on Leads in Salesforce from 3rd party(PHP-application)

for this we implemented an UI which takes some configuration from end user
    
    like 
         select by them which Lead fileds they want to avoid duplication

          for example they selected 
          
               Company,street,phone,city..etc


for this we need to implement fuzzy logic on some fields(company or phone etc).But company names are existing in short form like (TCS,Tata consultancy services,Tata consultancy).
 Eg.
       existing Lead details in SF
      
             company=Tata consultancy services
             phone =213-255-6145
             state=New York

Sending Lead to SF
      
             company=TCS
             phone =(213)-255-6145
             state=NY

Can any one tell us(In Apex or PhP), How we compare company name with existing records when Company name having short forms ???


Hi ,

we have 3rd party application(php)  from this we are adding a leads/accounts/contacts/notes to salesforce database, so inorder to avoid duplicates while adding the details into salesforce database we need to implement de duplication functionality with FUZZY LOGIC. Can you suggest any possible ways

So,please can any one help on this..
Hi,
 
I need implement fuzzy logic as per requirement .So,do we have any fuzzy rule api's ? 

So,please can any one help on this.
Hi,
 I need to skip validation rule when im creating record from apex class and also from web services.

for ex: validation rule like: AND(ISBLANK(Phone), and in my class im not giving phone field.Even i tried according to the following link http://bobbuzzard.blogspot.in/2011/11/bypass-validation-rules-from-apex.html,but we can't made changes in clients validation rules.

So,please can any one help on this.
Hi,

I need to stop account trigger(Insert Event) while im converting lead to account.

trigger accounttrigger on Account(after insert)
{
 set<Id>ids=new Set<Id>();
  if(trigger.isAfter && trigger.Isinsert){

    for(Account a:trigger.new){
      ids.add(a.id);
}

if(ids.size()>0){
//do my stuff
//this block cannot be called while Lead Convertion

}

}

}

So,please can any one help on this.

 
Hi All,

how come i know whether the trigger is executed by api or from normal salesfroce function.
Hi All,

How to know metadata information of duplicate rules like Record-Level Security,Action on create,Action on edit from APEX or API 

                     User-added image
Hi,
I need to give Edit/View permission for custom fields user wise.So editing profile from Metadata api is not work out for me.
can u suggest me how to give FLS using permission set from Metadat API.
Hi,

Creating more custom fields in SF is suggestable in package level ??

My requirement is : We have 150+ custom field for leads.Custmer needs to filter out the leads based on any of these custom fields values.Please suggest us the possibility ways. 
Hi Guys,

We have struck in developing of Burndown chart, please provide me the sample code, that would be great help to me.

Thanks in Advance....

Regards,
Gurunath 
Hi All,

 I need Required input field in visual force. I given as Required = "true".
    <apex:inputField value="{!reg.Confirm_Password__c}" style="margin-left:-400px;" required="true"/>

It's working. But i don't want " | " this symbol as red mark. I want Star symbol as red color. Here, i am using <sup Style="color:Red">*</sup> tag for Star symbol. How to hide the " | " symbol.

Thanks in advance
Thulasi
Hi All
Multi-Select Picklist field arrow buttons when System Administrator language is English(Default)User-added image
After System Administrator language changed to some other language (like Germany.....)the arrow buttons are changed like this..
User-added image
How to overcome this to remain the Arrow buttons same even language is changed.
                               OR
Im trying to replace the arrow butons with some Custom Image and Successfully done.But while i changed the System Administrator Language the same thing is happening.
Please help on this.
 
Upload .csv file in the vf page
  • September 24, 2015
  • Like
  • 0
Hi,
 Duplicate alert

As shown in the image i need to get the possible duplicate records when i am inserting record from apex class or Api.

when i am executing from apex class with the following code
Account ll =  new lead();
ll.Name = 'Burlington Textiles Corp of America';
insert ll;

it showing error without possibilities like this
User-added image

Please help on this.
Hi All,

I got the below runtime error,please suggest on this.

Apex script unhandled trigger exception by user/organization: 00570000004Tasp/00D900000008xzp

Opportunitytrigger: execution of BeforeUpdate

caused by: System.QueryException: List has no rows for assignment to SObject

Trigger.Opportunitytrigger: line 3, column 1

My Trigger Code is like:
trigger OpportunityTrigger on Opportunity(before insert,before update,after insert , after update , before delete) 
{
    User validuser=[select Namespace.Active__c,Namespace.Pset__c,Namespace.code__c from User where Id=:UserInfo.getUserId()];

   if(validuser.Namespace.Active__c==true && validuser.Namespace.Pset__c==true && validuser.Namespace.code__c!=null)
   {

      //code

    }
Hi,
I need to send Lead information to salesforce from Php with AssignmentRule,can anyone guide how to implement below apex logic from Api(php) 

Database.DMLOptions dmo = new Database.DMLOptions();
dmo.assignmentRuleHeader.useDefaultRule= true;
Lead l = new Lead(company='Facebook', lastname='Smith');
l.setOptions(dmo);
insert l;


My PhP sample code:

define("SOAP_CLIENT_BASEDIR", "../../soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');
require_once ('../userAuth.php');
try {
  $mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
  $fields = array (
     'FirstName' => 'John',
    'LastName' => 'Smith',
    'Phone' => '510-555-5555',
    'Company' => 'Facebook'
);
$sObject = new SObject();
$sObject->fields = $fields;
$sObject->type = 'Lead';
$createResponse = $mySforceConnection->create(array($sObject));
print_r($createResponse);


 
Hi,

I need to stop account trigger(Insert Event) while im converting lead to account.

trigger accounttrigger on Account(after insert)
{
 set<Id>ids=new Set<Id>();
  if(trigger.isAfter && trigger.Isinsert){

    for(Account a:trigger.new){
      ids.add(a.id);
}

if(ids.size()>0){
//do my stuff
//this block cannot be called while Lead Convertion

}

}

}

So,please can any one help on this.