0
votes
0answers
3 views

How to check whether fields are being used or not in sandbox?

There are some bunch of custom and standard fields that are not being used in my sandbox. I know how to check for one field(Delete it and if it says it is referred somewhere. If it says so, it is ...
0
votes
1answer
7 views

Split method truncating result and appending '…' in the end

String s = 'a b c d e f g h i j k l m'; System.debug(s.split('')); above code returns (, a, , b, , c, , d, , e, ...) am I missing something? Please help
0
votes
0answers
8 views

commandButton only executes first row

I have multiple rows in the pageBlockTable and I want the commandButton to work for each row seperately. Right now it only executes the first row, does anyone have any ideas how I can do this? apex ...
0
votes
0answers
16 views

I am getting this error. what does it mean and how can i solve this?

I am trying to update account's Broker_User__c field with userid after inserting user.when performing accounts object DML operation this error comes. System.DmlException: Update failed. First ...
1
vote
1answer
5 views

Creating an OrderItem from a QuoteLineItem

I'm trying to write a trigger that - when a Contract is activated it's accepted quote is converted into an order, under which the QuoteLineItems are now "copied" into OrderItems (order products to the ...
0
votes
0answers
8 views

In a single Visualforce page can we divide half pdf and half web page?

In a single Visualforce page, can we divide half pdf and half web page?
0
votes
0answers
4 views

Append HTML Component to Standard Page using Sidebar vf page

I want to add a button to Content Delivery detail page, after this button: <input id="viewContentDistribution:distributionDetails:pageBlockButtons:viewContentDistributionForm:delete" type="submit" ...
0
votes
0answers
7 views

Update unit price in a Custom Object Inventory__c from Pricebookentry unit price

Code public void updateprice() { List<Inventory__c> obj=[select Id, name,Product_Code__c,Remaining_Balance__c,unit_price__C from Inventory__c limit:10 ]; { PricebookEntry ...
0
votes
0answers
12 views

Decimals pretending to be Integers when used in Maps

I came across some very strange behaviour when working with a Map with Decimal keys today. It seems like the Decimal type can't handle Integer assignments properly, but allows them nonetheless. I've ...
0
votes
1answer
9 views

@future annotation salesforce begineer example

Since I am new to annotations concept in salesforce, I need a perfect example which explains about future annotation with example.
0
votes
0answers
10 views

Click to Dial Disabled support:clickToDial

Created a VF page to implement the <support:clickToDial> and it won't connect to the CTI adapter .It just has a greyed out phone icon and when you hover over it it says as below, "Click to ...
0
votes
0answers
13 views

Controller hardcoded login

I'm trying to setup an anonymous account for users to post with. try{ system.debug('-------forum_ctl ' + UserInfo.getName()); pageReference pr = Site.login('anonymous@example.com', ...
0
votes
0answers
4 views

Is there any way to use REST API to add subscriber to list?

I can see SOAP to add subscriber to list. is there any way to add REST API to add subscriber to list Thanks
0
votes
0answers
10 views

How to query on data categories in salesforce?

(SELECT Id, ParentId, DataCategoryGroupName, DataCategoryName FROM Info_Hub__DataCategorySelection). In this i did not find complete list of data categories. I want to list up all data categories ...
0
votes
0answers
4 views

Sandboxes for DE Packaging org?

Any chance to get Sandboxes for the DE Packaging org of our managed ISV package? Besides having short and incremental sprints we also have long running investigations. Those need to work on the ...
0
votes
2answers
23 views

how to pass the value of output field to another page in salesforce apex

I have a output field like <apex:outputField value="{!objAccount.AccountNumber} "/> and i want the value of this field(whisch is 1234Ex) to be passed to another page so that i can use it ...
0
votes
1answer
9 views

Create Picklist Values by workflow update

Can I create picklist values dynamically by Workflow updates? In a custom object picklist values need to be populated with Account Names dynamically after creation of an Account. Please let me know ...
0
votes
0answers
6 views

How can I Import a list of leads/contacts from a show and create lead/new contact?

The situation is as follows: After a show, we got a list of around 550 new leads, with the following states: Some are totally new leads - and need to be imported into SF as a new lead, attached to ...
1
vote
1answer
9 views

Adding Apex pages to lead layout page

I'm trying to add a Google Map to my lead page layout. I've made the page in Apex, how do I insert into my lead page layout? Alongside my custom fields, etc? Thanks!
0
votes
1answer
10 views

Custom Button to update Record Type and open in Edit mode

I have two record types on Opportunity. Stage 1 and Stage 2. I would like to use a custom button to update an opportunity Record Type from Stage 1 to Stage 2 and open the current opportunity in edit ...
0
votes
0answers
9 views

Lightning Component aura:iteration is throwing error upon rerendering

I have created a lightning app with a text box and list of contacts under it.As user types in the search string,List contents should be filtered.But I am receiving following error upon typing the ...
0
votes
1answer
13 views

Display records in an excel sheet

I have two objects : 1. Assigned_Task__c object 2. Migration_Report__C object 1 is parent of 2 I have a custom button on Assigned Task object call Generate Migration List My requirement is when i ...
0
votes
0answers
14 views

Test class for http callouts

I need to cover my class code. I have http callouts in it. Any lead how to do that? I've searched in the internet and found that httpcalloutmock help to test the http's request. Any example please?! ...
0
votes
1answer
18 views

System.EmailException: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id : using Event in WhatID of singlemailmessage method of salesforce

I am trying to send email to Contact through Apex class with SingleEmailMessage for Event assigned/updated for him, so used: SetWhatID = Event.id; It is failing to send email with below exception: ...
0
votes
1answer
22 views

Custom Button not working on Visualforce Page

I created a Visualforce page to override the standard case view page. I have a custom button "OnlineClosed" on case object that ask for a remark and update 2 field status and stage at case object. The ...
1
vote
1answer
6 views

Notification Mail based on Storage Usage in salesforce

Have one question that is it possible in production to send notification mail or generate task whenever usage storage is crossed the 80%. Can i need to write a class for that or any standard ...
0
votes
0answers
4 views

Using Git, Bitcucket with Egit plugin

We have started using Git and Bitbucket as our version controling system. Also we are using Egit plugin as the GUI for git. We created a team in bitbucket, added our developers in to it and start ...
0
votes
1answer
10 views

Using apex:Component within Angular Repeat

I have done a VF Page which pulls data through RemoteAction Methods and display it. On clicking the row ,jumptron should display its related information whose logic resides in a apex:component. All ...
0
votes
2answers
21 views

How to whether a user has been assigned a role or not?

I need to know the list of users who have not been assigned any role. Can any one please provide the query to know that ? Thanks in advance .. !!
0
votes
3answers
23 views

Finding Opportunities from a List of Accounts

I am given a list which has 1000 accounts. I am asked to find opportunities between stage0-5 that are present on these 1000 accounts. I should differentiate these 1000 accounts into 2 ways. ...
0
votes
1answer
12 views

Using Trigger, how to post in chatter and @mention only a selective contacts list

I need to post in chatter and @ mention to a selective contacts list based on specific criteria that is selected by the logged in user, when creating a specific record. (for example, corporate wants ...
0
votes
1answer
15 views

how to know whether a custom link is being used in a sandbox or not?

I need to delete a custom link which is a home custom link. But i am not sure that it is being used or not . Please provide me a solution.
1
vote
1answer
13 views

Finding the current RecordType name selected by user

Updated code to give you more context of what I'm doing. trigger vendorTrigger on vendor__c (after insert, after update) { vendorController vencont = new vendorController(); ...
1
vote
1answer
15 views

Add contact to existing User

We're building out some functionality revolving around portal/community users which will partially rely on them being associated with a contact (we have a custom object that looks up to contact). The ...
0
votes
0answers
5 views

Case Comment Automation, without Apex - FLow + Process Builder

I'm trying to create a case comment from Flow, but I'm having some issues. After many errors, I've broken it down to some simple input screens to debug. 1) Screen - Enter Case ID field, Test Case ...
2
votes
1answer
19 views

Is there a guaranteed execution order of rerender and oncomplete

I am trying with actionFunction's rerender and oncomplete. During my testing, it seems to me that rerender happens before the execution oncomplete method. But is that a guaranteed thing? I don't see ...
1
vote
1answer
15 views

URL Hack functionality within Salesforce1

I have a fun one. Salesforce1 users need an SF1 action button to: Create a new case with its standard and custom lookup fields auto-populated from lookup fields associated from the custom object. ...
5
votes
2answers
102 views

Salesforce API vs. APEX webservice performance

We currently have a .NET application that retrieves/updates data in Salesforce using the API. We are encountering long processing time where the session can time out as well as a bad user experience. ...
1
vote
0answers
6 views

Putting a form in a component, problems with submitting form

I have a component which I am trying to have a form submit. The form is handled by a managed controller in a managed package (which is a third party's). The component does not otherwise have code ...
0
votes
1answer
23 views

Better way to bulkify trigger

The trigger below works but I would like to know what I can do to avoid the query in the for loop. trigger eOneAutoCreateProductResponse on Product_Configuration__c (after insert) { ...
3
votes
3answers
39 views

Reset the current form without reloading page?

In our scenario, we have a form of several apex:inputfield elements and some other input fields. So they have a default value coming from database. We have implemented a cancel button which currently ...
0
votes
2answers
23 views

Populate Parent Data in Visualforce

I have overridden the New action for a custom object which will take me to a Visualforce. It works well until there. So now my custom object has a lookup relationship to Account. So when trying to ...
3
votes
3answers
43 views

Getting dynamic Record Type name/id

Is there a way I can find out what recordType the user have selected? I have put together the apex code : private String getRecordTypeSelectedId(String recordTypeName) { String rtId; ...
1
vote
1answer
20 views

Query for Closed Lost Oppurtunities

Is there any way I could get a query pulled of Closed-Lost opportunities, with reason lost being “competitive advantage”?
0
votes
1answer
9 views

Ctrl button on variable and function to go to their definition in Force IDE

Like in java , how we can locate the declaration of variable and definition of function by using CNTRL button. Is there any way to do this Force IDE. It will be very easier to identify the function ...
1
vote
2answers
18 views

'Use Case Feed' option on developer org

I setup a developer org to test Case Feeds. When I try and edit a profile, I cannot see the 'Use Case Feed' option under General Permissions. How can I get access to that permission?
0
votes
2answers
23 views

Copying Account Address to Contact Address

I am trying copy the address from account to contact after updating. But after update the address in contact is still the same. I could not figure out why. Any insights would be appreciated. trigger ...
-1
votes
0answers
14 views

How can I create a query to OrderItem based on Orders?

I have this query: SELECT Id, OrderId FROM OrderItem WHERE OrderId IN :idsOrder where idsOrder is a List<Id> of the Order type, but it doesn't return anything Does anyone know what might be ...
0
votes
2answers
16 views

Apex Trigger or Workflow Rules for Formula field that uses info from child object

I have ParentObject__c that has ChildObject__c, and there's a field Payment__c on ParentObject that gets updated in several different ways based on the values in both ParentPicklist__c on ParentObject ...
7
votes
0answers
37 views

Does the Summer ’15 release remove the ability to set test logging levels with the DebuggingHeader?

The Summer ’15 release notes have a section called Receive Debug Logs Predictably. It currently states that the order of precedence for debug logs will be: Trace flags set in the Developer ...

15 30 50 per page