• pjcloud
  • NEWBIE
  • 60 Points
  • Member since 2011

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 12
    Replies

Hello SFDC Gurus,

 

 

   This is out of curiosity. Does recycle bin store the sharing records? I don't think so, however Salesforce support informed us to pull the sharing records from recycle bin. Can somebody shed some light on this matter? I would greatly appreciate your input on this.

 

Thanks,

K

 

   

Can anyone please tell me if  there is a feature which shows all the users that view each account or inventory on salesforce???? Some one told me that we got to write a code. Can anyone please assist me on writing a code?

  • November 30, 2011
  • Like
  • 0

Hello,

 

I created 2 JS buttons for the contact detail layout.  Where do I find the files for those buttons in the Force.com IDE.

 

I need to commit those if possible to my Git Repo.

 

Thanks!

 

Randy

I have 1 user in a profile that when they click our Take Case button they receive the following error:
A problem with the OnClick JavaScript for this button or link was encountered:
Object doesn't support this property or method.

I have had all other users within that profile try to click the button within IE and Chrome and none of them get this error.  Just this one user.  Any ideas?

Here's the code:

{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} 

var caseObj = new sforce.SObject("Case"); 

caseObj.Id = '{!Case.Id}'; 
caseObj.OwnerId = '{!$User.Id}'; 
caseObj.Status = 'In Progress'; 

var roleName = '{!$UserRole.Name}'; 
if((roleName.indexOf("Tier 3") != -1) || (roleName.indexOf("Field Operation") != -1) || (roleName.indexOf("Service Engineer") != -1)) 
{ 
caseObj.Substatus__c = 'Open with Product Specialists'; 
} 
else 
{ 
caseObj.Substatus__c = 'Open with Support Advocates'; 
} 

if('{!Case.Incident_First_Response__c}'=='') 
{ 
caseObj.Incident_First_Response__c=new Date().toISOString(); 
} 

var result = sforce.connection.update([caseObj]); 

if (result[0].success=='false') { 
alert(result[0].errors.message); 
} else { 
window.parent.location.href="/{!Case.Id}"; 
}

 

 

  • May 07, 2013
  • Like
  • 0

How to send data from Ms sql-server to salesforce?

 

I have seen a lots of posts but i don’t understand which is the best solution.

 

1)     Use the Apex Data Loader command line interface to get information from a SQL server db and after import into salesforce.

 It is a robust and easy solution?

I would not buy app but if it is required for a good work....

2)     Are there solution? webservices , call out,http requests

 

Thank you in advance.

BR

 

  • May 07, 2013
  • Like
  • 0

Hello SFDC Gurus,

 

 

   This is out of curiosity. Does recycle bin store the sharing records? I don't think so, however Salesforce support informed us to pull the sharing records from recycle bin. Can somebody shed some light on this matter? I would greatly appreciate your input on this.

 

Thanks,

K

 

   

Hi all, 

 

I have written a trigger on opportunity , whenever a record created on opportunity whose campaignId and Are you donor or vendor(custom field) is vendor.

 

Then Fields updates will be in custom object (junction object which will relate campaign and accoun ).

 

I don't whether my trigger work properly or not.

 

The doubt is I got the id of campaignId and AccountId in opportunity and put in a set and doing the process and there were no relationship between those set . 

 

can anyone tell me whether my trigger properly or not..

 

trigger VendorAmount on Opportunity (before insert) 
{
set<ID> cids = new set<ID>();
set<ID> aids = new set<ID>();
for (Opportunity t : trigger.new)
{
if (t.CampaignId!= null && t.Are_you_Donor_Vendor__c=='Vendor' )
cids.add(t.CampaignId);
aids.add(t.AccountId);
}
List<CampaignVendor__c> cv=[Select id, Campaign__c,vendoramount__c From CampaignVendor__c where Campaign__c =:cids and Account__c=:aids ];
for (Opportunity t : trigger.new)
{
 for(CampaignVendor__c cc:cv)
    {
    cc.vendoramount__c= t.Amount ;
    update cc;
    }
   
 }
}

 

 

Hi All,

 

i want to format the date in a column in pageblock table which is being retrived from aggrigate result .i am getting the result as "2009-06-30 00:00:00" i just want to show only date"2009-06-30" insed of time.is their any way to this 

 

Thanks,

Harsha

Hi All,

 

Can anyone please explain the below

 

1. What is Master-Detail and Lookup relations / Major difference b/w them ?

2. What is the significance/use of Master-Detail and Lookup ?

3. When to use Master-Detail and Lookup ?

 


Thanks a ton in advance !

 

Regards,

SK

 

Hi I am trying to get details on all the custom fields of an object like the create date and last modified date of the custom field, can this be done and reported on?

Can anyone please tell me if  there is a feature which shows all the users that view each account or inventory on salesforce???? Some one told me that we got to write a code. Can anyone please assist me on writing a code?

  • November 30, 2011
  • Like
  • 0

I have multiple related objects  associated to Product2  (Accounts and MycustomObj__c)

 

When I am deleting product I am checking if there is any (related lists)

but I do not know who to prevent deletion if I find related list items.

 

My conditions are when I mass delete products

if there are related items associated to product set the product to inactive do not delete (I do not know how to do this part)

 

If not related items delete product and all child objects. ( this works fine)

 

Any suggestions please?

 

Thanks

When rendering a Visualforce page (which includes two page blocks and two data tables), the xls file includes a big block of javascript.

 

For example:

 

 

<script type="text/javascript"> if(!window.sfdcPage){window.sfdcPage = new ApexPage();}
UserContext.initialize({'locale':'en_US','timeFormat':'h:mm a','today':'9\/14\/2009 11:03 AM','userPreferences':[{'value':false,'index':112,'name':'HideInlineEditSplash'}
,{'value':true,'index':114,'name':'OverrideTaskSendNotification'}
,{'value':false,'index':115,'name':'DefaultTaskSendNotification'}
,{'value':false,'index':119,'name':'HideUserLayoutStdFieldInfo'}
,{'value':false,'index':116,'name':'HideRPPWarning'}
,{'value':false,'index':87,'name':'HideInlineSchedulingSplash'}
,{'value':true,'index':88,'name':'HideCRUCNotification'}
,{'value':true,'index':89,'name':'HideNewPLESplash'}
,{'value':false,'index':90,'name':'HideNewPLEWarnIE6'}
,{'value':false,'index':122,'name':'HideOverrideSharingMessage'}
],'startOfWeek':'1','isAccessibleMode':false,'ampm':['AM','PM'],'userId':'00580000001eyzn','dateTimeFormat':'M\/d\/yyyy h:mm a','dateFormat':'M\/d\/yyyy','language':'en_US','siteUrlPrefix':''}
);
</script>

 

 

Excel on a PC is happy to ignore this javascript, but Excel on a mac won't, and Numbers on a Mac completely chokes on it.

There's obviously no need to include this JS in the excel file. Is there a way to disable or remove this from the excel file?

 

 

 

Message Edited by Brickboxer on 09-14-2009 09:19 AM