0
votes
0answers
3 views

Swap record in same section using buttons

Hi all i want to swap records in one section using button in salesforce , would you please help me with code
0
votes
0answers
5 views

REST API calls from salesforce and parse the JSON to display on the vf page

I have to make REST API call from salesforce to a HTTP URL GET method to get the JSON response parse it and display it on the vf page. My Questions: From the class below how can I check the status ...
1
vote
1answer
5 views

How do I see/change the Oauth2 callback URL for a connected app?

I created the connected app and everything is working fine. I am able to generate Oauth2 tokens and query objects. However if want to see/change the Oauth2 details like callback URL, I cannot see it ...
0
votes
0answers
9 views

Ability to create records of custom objects?

My profile is the Systems Administrator, but I am not able to create new records of a custom object that I made. I went to check permissions and it says that I have all the permissions to ...
0
votes
0answers
4 views

Salesforce.com Lightning App Builder. Working with Custom Lightning Components

Salesforce.com Trail-Head challenge "Working with Custom Lightning Components" has you install an Unmanaged AppExchange Package with a Custom Component. The package installs in my Developer Org and ...
0
votes
0answers
6 views

Javascript query not finding existing field

There is some small work going on with a custom javascript button in an org that I do not have Admin access to. It fails on a field that clearly exists. ...
0
votes
1answer
13 views

Is it possible to create a lookup or a master-detail field to Event from my custom object?

I want to create a master-detail or lookup relatioship between my custom object and the Event standard object. My custom object would be the child. The problem is that the Event object is not ...
0
votes
0answers
5 views

Are there any automated Apex refactoring tools?

With reference to a Stack Overflow question from 2009... In the last six years, have any automated Apex refactoring tools been developed? I'd like to do simple refactorings like "extract method", ...
0
votes
1answer
8 views

If formula to return either the lead company name or contact on a related object

Good Afternoon All, I need some help with a formula. Aim – Create a text formula which returns either the Lead company name or the contact company name based on criteria. Criteria – If the lead ...
0
votes
1answer
11 views

First Test Class - static data

I'm completely new to Apex, and self-teaching a lot through examples. I just completed [with this community's help!] a custom VF page with "industry news" twitter feeds. It's a basic page, with each ...
0
votes
0answers
4 views

Html in adderror message is not working in salesforce1

I am trying to show a html link in an error message that gets triggered up on insert. That link works for desktop but not in salesforce1.In mobile version entire html shows up along with error ...
-3
votes
0answers
12 views

insert a picklist value in other organization through callout [on hold]

I have add a value in picklist I want this newly created value to insert in other organization through web services call out.
1
vote
0answers
15 views

Why my save function does not work?

I have a custom page. When I on click save button it does not save anything. Is there anything wrong with my code that I could not find? Thanks public PageReference save() { ...
0
votes
0answers
2 views

SMTP-Relay-Server - Mass eMail Provider

Situation There are a bunch of different email delivery services available. A lot of them offer SMTP interfaces and email relaying: Amazon Simple Email Service (SES) Mailchimp Mandrill Sendgrid ...
0
votes
0answers
2 views

Mandrill Salesforce Integration - SMTP-Relay-Server

Scenario In one of our projects we want to use mandrill as our primary email delivery service. Therefore we have to (for several reasons) use the standard SMTP relay. As discussed in several stack ...
0
votes
1answer
13 views

How to test a custom controller

I have a controller that takes a contact ID from a page, makes some database queries to set up some info for the page. I just can't see how to go about setting up a test class. Its my first attempt at ...
-5
votes
0answers
18 views

New to salesforce and need to write test class [on hold]

how to write test class for the following class : public with sharing class DebugMain { public interface IMethodEntry { void MainEntry(String mainObject); void ...
0
votes
1answer
7 views

Salesforce Nonprofit Starter Pack - Company field on Leads

We have just installed the NFP Starter pack for Salesforce, and have come across a problem when we use web to lead. We allow users to apply for membership by filling in a web to lead form. The ...
0
votes
0answers
13 views

geolocation not getting updated

i followed a blog to get geo location, but it isn't working properly. if i am using CODE1: i am having problem redirecting page. page isn't getting redirected. i changed to CODE 2: in which i am ...
0
votes
1answer
13 views

How do I hide a component on some layouts but still perform work?

I have a component that we only show on some layouts for an object. It has a polling function that monitors changes to the object (an object from a managed package). One function of the polling is to ...
0
votes
0answers
19 views

MAvensMate IDE to Sublime text for salesforce IDE

Anyone please provide me any guide line for Sublime text with MavensMate IDE with salesforce . I Have Sublime text but i am unable to configure with MavensMate with force.IDE .. I have Mavensmate ...
1
vote
1answer
46 views

Will inserted records during a test be deleted?

I wrote a test that inserts several records into salesforce like so (psudocode): @isTest static testmethod testAccount() { Account__c acct = new Account__c( Name = 'TESTPROJ', Title = 'TESTTEST' ...
0
votes
0answers
4 views

Visualforce to PDF: Unable to change column widths?

I've inherited a visualforce page that generates a PDF. The output isn't very useful in it's current state, so I've been asked to format the columns to the last column (the text box of activities) is ...
2
votes
1answer
10 views

How can I delete Account with Opportunities(Closed Won) via REST API?

As a documentation said when I delete a record all referal records will be deleted. But there are limitation about opportunities with Close Won Stage. If I change Opportunities to another Stage, ...
1
vote
1answer
15 views

Salesforce Tooling API for ValidationRule

I am trying to update ValidationRules via the tooling API via PATCH and the endpoint: /services/data/v33.0/tooling/sobjects/ValidationRule/{Id} Every time I try to update a field i get this error and ...
1
vote
1answer
15 views

How can I clear out a picklist and a textbox?

I have two pick-lists, one textbox and one button called Clear, now I want to clear textbox and reset pick-list on click of clear button. this.form.reset(); is not worked because i have used ...
2
votes
1answer
26 views

Internal Salesforce.com Error in a trigger when upserting Records

Actually i was trying to understand flow, that's why i have create this trigger. I have created a CSV with 4 Records having 2 existing Records (which have another field changed value), 2 new record. ...
2
votes
1answer
25 views

Alternate for Read-Only in salesforce apex for 'collection size exceeds maximum size of 1000'

I got a scenario where I need to retrieve more than 1000 records using SOQL. If I set 'readOnly' option to 'true' my pages works fine. But, my present page is included in another page using tag which ...
2
votes
0answers
12 views

Combine external mapping with Salesforce

I want to show an external map which reacts on user-actions in salesforce. I already create a Visualforce-page and implemented the map via iFrame. This should work fine, i guess. Is there a way to ...
2
votes
0answers
16 views

Lightning Async Action calls versus JS Promises

The Lightning Developer Guide states: All the action calls are asynchronous and run in batches. If this is the case, does the framework have any concept resembling JavaScript promises? It ...
3
votes
2answers
20 views

Inputcheckbox Required field not throwing a validation

I created an apex:inputCheckbox and I made that checkbox required in the Visualforce page, by using `required=true. I filled in all the fields except this checkbox and hit save, the fields are saving ...
-1
votes
0answers
8 views

Creating more than 2 grouping in Salesforce reports

Can anyone tell me , is it possible to create more than 2 grouping in Salesforce reports, if yes- I think only by Apex reports we can achieve it. Please explain me how to achieve it. Thanks.
1
vote
1answer
14 views

get phone number from Field of type Phone without changing type to Text

i have a Field of data type Phone. after querying from SOQL i am getting its value as (*) *-**** in apex. How can i extract text value from it excluding hypen and (). I am looking for generic Phone to ...
0
votes
0answers
16 views

How to create a tab using a custom view

I need to create a TAB inside an APP. In this tab I need to list all (and only) the contacts that have a certain Account. I've created a custom view in the Contacts tab page and I suppose I can use ...
1
vote
1answer
10 views

Formula Return Percentage Field Displaying wrong information

I have a formula field (Utilisation %) which should return percentage. My formula is (Actual Time/Estimated Time *100). Actual time (Number field) I am rolling up from time object from total hours ...
1
vote
0answers
11 views

geolocation when user logs in or logs out?

I am using the login flow which has been released as part of Winter'15 release. I would like to pass the geolocation of the logged in person (using javascript HTML5 Geolocation API) to visual flow as ...
0
votes
1answer
35 views

Dynamic SOQL for getting all objects in Salesforce Org

I am creating a VF page which contains a Picklist of all objects in my Salesforce org including Custom Objects. I am getting an error 'unexpected token: 'null' when I select custom object. VF Page ...
1
vote
0answers
16 views

canvas-all.js:825 Uncaught #<Object>. in canvas.all.js fie

Scenario: My .NET-based application is deployed on some other application server (not Heroku). I have put the following JavaScript code on my .NET application page: <script ...
1
vote
0answers
28 views

Is it possible to remove namespace prefix from a managed package?

I have installed a managed package. I need to remove my managed package. I am not able to uninstall the manage package. Is it possible to remove? Please can any one help me out what do I need to ...
3
votes
0answers
22 views

Save & New Button for Visualforce page with data on lookup

public class ProductController { ApexPages.standardController m_sc = null; public ProductController(ApexPages.StandardController sc) { m_sc = sc; } public Pagereference ...
3
votes
0answers
25 views

Profiles and Record Types

We have a custom object with 6 record types. I would like to know whether it is possible to determine what all profiles have access to a specific record type from this custom object . Any pointers ...
3
votes
2answers
44 views

Visualforce Form auto submit

I am creating a form in Visualforce. I am passing in parameters through the URL to fill in the fields. I would like for this form to auto-submit to trigger the Apex controller. How can I achieve ...
2
votes
1answer
16 views

When onClick display some text in the inputtext

Here is the very basic functionlity that I wanted to test, so when the user click on the checkbox I want to populate some text in the inputtext When clicked the checkbox but nothing is displaying on ...
4
votes
2answers
28 views

Null Pointer Exception add AccountId to WhatId for Task

Trying to build what I thought would be a simple trigger: when a task is created that is only related to a contact (WhoId = contact type, but WhatId = null), relate the task's WhatId to the contact's ...
5
votes
1answer
30 views

How to denormalise a Master-Detail relationship

Contacts have Specialities (skills) to sell so I have a Master-Detail from Contact to Speciality. We sell Product (1/2 day, full day) for those Contacts so the Product has a lookup to the Contact. ...
2
votes
1answer
17 views

I am not able to pass bamboo variables in build.xml . What is missing?

I have declared global variable in bamboo as sf_username and sf_password This is my job (ANT job in bamboo) :- deployCode -Dsfdc.username = ${bamboo.sf_username} -Dsfdc.password = ...
2
votes
0answers
9 views

How to populate second grid based on the checked on the first grid?

UPDATE: When the user click on checkbox I want to display the detail information of that particular record in a grid When the user Select ALL checkbox then iterate all the selected checkbox and ...
3
votes
2answers
31 views

Exception Handling on child records when parent is updated

Please let me know how to perform exception handling in this scenario? Though we have added error message on child record we couldn't see it on the parent while the parent record is being updated (as ...
-2
votes
0answers
10 views

Create Parent Campaign [on hold]

I have been asked to create a Parent Campaign. I am unable to create the Parent campaign. I am trying to create a new campaign so that when the child campaigns are created it can be used as parent ...
2
votes
1answer
24 views

Help testing a case standard object trigger

I need help testing a trigger written against the Case Standard Object. It keeps failing at 74% and I don't understand why? Here's what I have... any & all advice is appreciated. TRIGGER trigger ...

15 30 50 per page