1
vote
0answers
9 views

Apex Trigger catch block can't be covered by test class

I have a trigger named AssignsCanadaWebLeadtoQueueOnLanguage on our Stage instance which according to Developer Console has lines within a catch block which I can't seem to cover using my test class ...
1
vote
1answer
11 views

Remove characters from a string in Visualforce

Most of programming languages have substring or equivalent. I'm looking for a way to do this in Visualforce. My requirement is adding a link to show a popup(show/hide div) to display a comment field ...
2
votes
1answer
16 views

want to achieve rollup summary(SUM) using Aggregate functionss

Compile Error: Expression must be a list type: SOBJECT:AggregateResult at line 7 column 36 (this is line no7:manu.Total_Cost__c = Decimal.valueOf(ar[0].get('total'));) trigger rollupfldsonManuf on ...
2
votes
1answer
20 views

How to write a rollup summary trigger for a lookup relationship

Is there anyway to update a rollup summary field with lookup relation ship for a custom object. How can we achieve this using triggers ?
3
votes
1answer
11 views

Unexpected error when uploading package as Managed - Released

I got the following error message when uploading a new patch version of my managed package: An unexpected error occurred when uploading your package. Please contact Salesforce Support and provide ...
0
votes
1answer
16 views

Null pointer exception Attempt to de-reference a null object Trigger

I am trying to default the Account Name in a case to 'abc corp' but while executing the code, it gives the error Attempt to de-reference a null object. its happening at line 10 which ...
0
votes
0answers
3 views

When will ExactTarget support CRUD methods on the LandingPage object?

What the title says. ET has a LandingPage object in the SOAP API: https://help.exacttarget.com/en-US/technical_library/web_service_guide/objects/landingpage/ However, that object does not support ...
0
votes
0answers
9 views

org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required (CloudConnect Salesforce sample ETL SOQL validation error)

SOQLvalidation threw validation error in CloudConnect (Clover ETL) Salesforce sample ETL. org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required Data retrieve target Salesforce ...
1
vote
1answer
19 views

Error: “Email: data value too large: (max length=80)”

When migrating contact record to Salesforce I hit this error: "Email: data value too large: (max length=80)". What should I do if one of my emails is longer than 80 characters?
0
votes
0answers
14 views

Creating Lead Shares

I have a requirement to where I need create a LeadShare with my PowerPartners. So if a Lead is created by a PowerPartner then it will placed into LeadShare. My Orignal thinking was to take the User ...
0
votes
1answer
26 views

Help writing a test class for a trigger

Can anybody help me please to finish this test class, I am new in testing class and I spent the whole day trying to get coverage for this trigger, so far I get 33% and looks like the only part of the ...
2
votes
2answers
34 views

adding a horizontal scroll bar to HTML table in VF page

I have a HTML table in my VF page with 18 columns and without the horizontal scroll, the table is looking very clumsy. Is there a way to add one? I already tried giving the scroll:auto feature in ...
4
votes
0answers
26 views

Internal Salesforce.com Error and invalid Cross Reference id

I have a piece of code that has been working for the past few months without problem until recently. I cannot say to the exact day this started happening as this is still in a testing phase and this ...
1
vote
1answer
18 views

Current Fiscal Year in apex

I need to check if close date of opportunity is equal to current fiscal year in apex.Can someone explain me how to use get current fiscal year.FYI my Org doesn't have custom Fiscal year setup.(Its ...
3
votes
1answer
23 views

What is the auto generated __Tag Object?

I noticed after I created a custom object, an object which ends with __Tag has been created as well. What does this object mean?
0
votes
1answer
9 views

Creating Report using field installed by Application

I'm trying to Report off a field that was installed by a 3rd party application but it doesn't appear in the list of fields in Reports. There are two other custom fields apart from the 3rd party ...
1
vote
0answers
10 views

Receiving_User merge field problems in a single user email template

I'm trying to use Receiving_User fields in an email template for a single user. I know that Receiving_User is only supported for mass emails, but it "kinda" works for single users too. I'm getting ...
4
votes
1answer
31 views

frontdoor.jsp for Customer Portal user? How to authenticate a portal user with session id?

authenticate a customer portal using SOAP login() method and LoginScopeHeader receive SessionID in LoginResult object How can I use SessionID to redirect the user's browser to the customer portal and ...
4
votes
1answer
19 views

Notification from timed-out batch query?

I have a batch process where it's intermittently failing due to what looks like the batch query timing out (details are here if you're interested). The error ends up looking like this in my log. ...
0
votes
0answers
10 views

EmailSendDefinition EmailSubject vs DynamicEmailSubject

I am trying to duplicate an EmailSendDefinition via API and ran into an issue where the EmailSubject is being truncated when retrieved via API. I did some testing and noticed that the ...
2
votes
1answer
11 views

Linking a Custom Object to the User object

I have a custom object called Sales Rep Location. This object looks up to the Quote and it is filled when creating a new Quote record. What we would like to is have this Sales Rep Location be filled ...
4
votes
1answer
41 views

Setting up a Public REST API

I found a different question asking, "Can I have a public APEX REST API?" which led to a blog post explaining how to setup a public site to expose a REST API: Create your REST API in Apex as normal ...
2
votes
1answer
45 views

How to conditionally style VF component using VF formula with multiple if-else

I have PageBlockTable where i want to put different colors for cells based on some condition <apex:pageBlockTable value="{!data}" var="rec" width="90%"> <apex:column> ...
-6
votes
0answers
22 views

System.AssertException: Assertion Failed - Help Please!

I'm having problems with a test code for this code: global class AccountDeletionBatchClass implements Database.Batchable<sObject> { public String x_query = ''; // This flag is used ...
1
vote
2answers
23 views

Trigger Contact Field on Opportunity Update

So I'm new to writing Apex Classes and Triggers - and I know I still have to "bulkify" my code but I can't understand why the logic isn't working here. Basically I'm trying to make an trigger on ...
3
votes
2answers
24 views

salesforce1 app and salesforce web app on mobile

salesforce1 app and salesforce web app on mobile look to be so similar to each other. Is salesforce1 app an iphone app used web view to embedded web app or phonegap app?
1
vote
1answer
16 views

Salesforce.com report works OK in Chrome & Firefox, but not in Internet Explorer

I have a rather large summary report (about 4,300 total rows) in Salesforce.com that renders OK when run in Chrome, but when I attempt to run the same report in Internet Explorer 8.0, the browser ...
2
votes
1answer
33 views

INACTIVE_OWNER_OR_USER

I'm getting an error INACTIVE_OWNER_OR_USER, operation performed with inactive user, and I have been doing a lot of research and the cause that I have found for this is its attempting to assign a my ...
0
votes
1answer
30 views

System.NullPointerException: Attempt to de-reference a null object - Update Field Trigger

I'm trying to create a trigger that will update a field on an account whenever the ownership of the account changes. I've tried to remove the NullPointerException error by adding if statements, but ...
2
votes
0answers
10 views

ECA (Event Condition Action) Forward Chain Rules in Force.com - Did anyone try before?

Did anyone try ECA (Event Condition Action) Rules using Visual Force pages? If yes, can you please state how to implement? Is Java Script library available that can be leveraged in Visual Force ...
0
votes
0answers
11 views

Email to Case and its Security

We need to configure and setup security, and for us the most critical piece is the security. We need to allow the users to manage case queues, but no other part of setup. It needs to link seamlessly ...
1
vote
2answers
117 views

Javascript button to check whether an object exists

I have a button on the opportunity detail page which currently directs my user to a visualforce wizard. However, if the user has already been through the wizard for that opportunity, I want it to take ...
1
vote
0answers
6 views

Is it possible to automate the deactivation of users from an external feed or API integration?

Large enterprise customers often request that we integrate with their internal audit-based access control list processes. Here is a general requirements summary: Step 1: Automate the export of all ...
1
vote
0answers
12 views

Mobile SDK - refresh access tokens

I am developing an hybrid local app. When the access token expires I must handle the re-login process (actually, I would like to refresh the token just before it expires). in the auth.js I've seen a ...
0
votes
0answers
17 views

Authenticated Website user cannot update own record

We use sharing sets to share records between users with an Authenticated Website license. We had a lookup field to Account in all our custom objects to facilitate the sharing. Spring '14 brought with ...
0
votes
0answers
5 views

Anyway to Delete Mass reports in SF which sit in different folders?

i think my title gives you the problem. I want to mass delete reports i belive you can do this via Eclipse IDE Plug-In, however i dont want to go down this route, is it possible to do it by using the ...
3
votes
2answers
15 views

Set Business Hours in Apex Test Code

I have written a class to calculate business hours for Case age in business hours. The class works great my issue is when trying to write decent test code for the class. In following testing best ...
1
vote
2answers
31 views

Can I tell if I queried a field?

I have some code that queries some fields from an object. I then use the schema to loop over all of the fields of an object. Is there a way, while I'm looping through the schema to tell if I had ...
-1
votes
0answers
12 views

Exact Target SimpleFilter - adding more operators when retrieving data extension objects [on hold]

Currently the operators that can only be used for data extension objects are equals,notEquals,greaterThan and lessThan. It would be nice to be able to use contains, greaterThan and lessThan when ...
2
votes
1answer
14 views

Are State and Country Picklist values enforced for data inserted through the API?

We are going to be turning on State/Country picklists soon for Leads and Accounts. There is currently a process for us in place that inserts new Leads using the SForce SOAP Api). Data that is ...
0
votes
1answer
24 views

Can't upload files with IE11 - does not support binary blobs

I am using the following script to upload files, function upload_file(id, index) { var input = document.getElementById('FILE_INPUT_' + index); var parentId = id; var ...
0
votes
2answers
23 views

Deployment Issue

While i am uploading the objects via Changesets in production it showing an error is This change set is not currently available. Recently uploaded change sets may take up to 30 minutes to be ...
-1
votes
0answers
8 views

Forecast fields mapping

Is there a way to map Forecast categories to any other opportunity fields rather than using amount? Maybe using Apex? Thanks.
0
votes
0answers
17 views

Adding object through REST API not appearing on chatter?

So my problem is that when i create an item, for example a new contact, which is related to an Account, the action of creating that object doesn't get shown on the chatter feed for that account. I ...
1
vote
1answer
24 views

Error while using IF in inline Visual force page

I am using an inline IF expression for the value attribute of an <apex:column> inside an <apex:pageBlockTable>. The code is as follows: <apex:pageBlockTable var="mem" ...
5
votes
1answer
90 views

Why can't I create a master-detail relationship between Product and my custom object?

Trying to create a master-detail relationship between my custom object (detail) and the standard product object (master). Initially it said I couldn't create this because I needed to make sure all ...
2
votes
1answer
13 views

SFDC SSO and credential flow

Can someone provide guidance on how to achieve the following scenario: We have an application which will be secured using an Id Provider (thinktecture v2) and this application will be embedded within ...
0
votes
0answers
8 views

Input length must be multiple of 16 when decrypting with padded cipher

I am trying to get connect with FB. For that i have installed the FB tool provided by saleforce and working on it. When the code try to decryptWithManagedIV i am getting error Input length must be ...
2
votes
1answer
22 views

Exact Target Charset

I send Data via SOAP to Exact Target extension. Everything work fine, but if I send some characters from another languages I have problems. I have tried to set line <?xml version="1.0" ...
0
votes
0answers
16 views

Authorization Required Error?

I have created a new registration page , when i am going to browse, this page is displaying following error I have gone through all the sites for Setup --> Develop --> Site --> Public Access ...

15 30 50 per page