2
votes
0answers
8 views

How to use Reduction Orders with decimal / non-integer quantities?

I'm considering using Reduction Orders to model the partial refund of an annual service. Example: Create and Activate new Order A with one line, Quantity = 1, Price = $15000 Create and Activate ...
1
vote
0answers
6 views

From Email Dropdown on Email-to-Case

I have two profile Profile1 and profile2. For profile1 5 email address setup and for profile2 another 5 email address setup in org wide setting. But I am the user of profile 1 should see the 5 email ...
0
votes
1answer
17 views

When I use lightning component in visualforce page I get Error on my visualforce page

I am stuck, when I use my lightning component in visualforce page it work fine until i am not using prefix name in visualforce page. When i use prefix name then it will show error"Something has gone ...
1
vote
0answers
10 views

<apex:SelectList > required =true attribute is not rendered in the underlying HTML

I have a <apex:selectList> (multiselect) tag and I have set required attribute to true. I then set docType="html-5.0"at page level so that I can take advantage of html5 validations. ...
1
vote
0answers
9 views

How to add chatter on home page in lightning

I want add feed and groups on my lightning home page for logged in user i.e chatter functionality on home page. I have tried to get chatter on home page by adding VF Page But we get only feeds ...
0
votes
0answers
16 views

Problem Creating test class for Knowledge Article Batch Apex

I Have Batch apex which will send emails when a article was published yesterday(we have scheduled to run daily). I have written testclass for it,but iam getting only 6% coverage.Please help me in ...
0
votes
0answers
4 views

Removing Icons from 'Open Activity' and 'Activity History' relatedlist on Custom Object

Is there any way to remove the icons from related list 'Activty History' and 'Open Activity' related list? These lists take the icons from the Object's Icon where they are added in the layout. I have ...
0
votes
0answers
8 views

Exposing Standard pages and standard record view page in salesforce sites

Can we/ How to expose these standard pages, standard record view in salesforce sites ?
1
vote
0answers
16 views

Javascript Button only works for my login in sandbox,for others it throws error

I have a weird issue in my sand box. I had wrote a javascript custom button to open a tab in primary tab.But the weird  thing is this code only works in my Login only,for others in the same sandbox it ...
0
votes
0answers
13 views

Salesforce Sage 300 Integration

How can I integrate Salesforce with Sage 300 ? Is there any API for this ? I need to push Salesforce accounts and contacts to sage 300 and bring back the same from Sage 300 to Salesforce. Please help. ...
0
votes
1answer
9 views

VisualForce : Dynamically rerendered inputFields are displaying on page without labels

Background: I created a VisualForce page with the intention of embedding it inline into an Opportunity layout. I've used the standard Opportunity controller with a controller extension. On this ...
2
votes
1answer
26 views

How to use pageMessages and have exceptions in controller tests

So I know how to present an exception as a message to the user: public class MyController { public PageReference myMethod() { try { doSomething(); } catch (Exception e)...
2
votes
1answer
15 views

Managed package API URL is different then unmanaged package?

After my app is granted an OAuth token by the user, I take the "url" provided in the OAuth request, and the token, and make a request back to salesforce to store some settings. In my unmanaged ...
1
vote
0answers
22 views

Simple AND/OR validation rule logic question

I'm trying to write a validation rule that says if the Stage is set to Lost, then if Lost Date, Why Lost, or both fields are not populated an error is returned. Here's what I have, but it's not ...
1
vote
2answers
20 views

Populate A Field in a Visualforce Page Using ActionRegion [on hold]

I have a VF page that contains 2 text fields. What I am trying to do is populate Field2 with the value from Field1 when Field1 is entered, but do so in real time (i.e., using actionRegion & ...
1
vote
0answers
24 views

Changing the width and height of image

I am using a visualforce page to save a record which has a Name field and a rich text area type field in it. I am using inputfield tag to get the data from user and save the record. The user has the ...
0
votes
1answer
15 views

Getting Error: Content cannot be displayed: Subscript value 5 not valid. Must be between 0 and 4 When trying to create pageBlockTable from a List

Here is my .cls public List<List<String>> getObjectList() { //StructuralInfo_with_RoofSections acct; List<List<String>> arrList = new List<List<String>>(); ...
0
votes
0answers
15 views

JSON or Mutli Dimensional Array (Map<String, Object>) To URL Parameters

What's the simplest way to take an object of variable structure and convert it into a URL? I'm looking for the Apex equivalent of jQuery.param(array) in JavaScript or http_build_query() in PHP. Here'...
0
votes
0answers
11 views

Error when Others Try to Install my Unmanaged Package

So I just finished developing/testing my unmanaged package-consisting of a vf page and apex classes/test classes and a controller, and uploaded it to Salesforce. When I have others download and ...
0
votes
1answer
17 views

call javascript api within apex controller

I am using the GoogleMaps JS Api and I'm looking to cleanse addresses. Is it possible for me to call this via a controller or do I need to do it within the browser? I can use this to pass parameters ...
0
votes
1answer
9 views

Microsite default URL

I have created a new business unit in a common parent business unit. I have created a microsite in the new business unit. This business unit does not have the same default URL as the other. I can ...
2
votes
1answer
34 views

Post to chatter from custom apex controller

As the title suggests I have a visualforce page, and a custom apex controller. I created a global action with the page and added it to the global layout. The intention is to have the user, from their ...
-4
votes
0answers
22 views

I'm scanning books, When books are added sound must be produced after getting sucess message. I'm unable to get the sound [on hold]

<apex:page controller="OrderFulfill" sidebar="false" id="page" tabStyle="Orders__c"> <html> <title>Print Test Page</title> <style type="text/css"> .outBorder { ...
4
votes
1answer
24 views

Why did my workflow rule run? (A spin on the usual question)

I have a workflow rule that fired unexpectedly. The workflow rule was set to evaluate when a record is created, and any time it's edited to subsequently meet criteria The workflow rule criteria are: ...
3
votes
0answers
6 views

Donations (NPSP) duplicating to cloned contact records

We are using the clone function to duplicate contacts. We noticed when we do this and then add a donation record to one of the contacts (the original contact we cloned from for example), the donation ...
0
votes
1answer
13 views

Marketing Cloud Query Activity error

Are query activity errors accessible through API? These would be SQL errors that are only thrown at run time. Traditionally you need to reach out to Salesforce Support to get access to these errors ...
0
votes
1answer
17 views

Test Event Attachment

I'm trying to write a unit test for a method in a class I wrote that attaches a file to an event record. I want to test that if the attachment does not insert give an error, else assert that the ...
1
vote
1answer
16 views

user gets insufficient privileges

I cloned the standard user profile and took away rights to a lot of objects. However I left a few of the standard objects like contacts and accounts. When I give this profile to a user they get '...
3
votes
0answers
25 views

merge tool for salesforce profiles - can it be done?

I am implementing git for our salesforce team. I've got some slick python scripts that retrieve/deploy to the cloud and it's all good except for a few situations which are pretty painful. I hope ...
2
votes
3answers
54 views

Validation Rule Using IsPickVal Question

I am trying to put a validation rule together that fires if certain values on a picklist field are populated and then requires the user to populate a contact field called "DV Perpetrator / Opposing ...
1
vote
1answer
13 views

Filter ProcessInstance by Id Type

I'm writing a short snippet of code to get which records of a certain type were approved, and by who. However, I don't have an id list- I have an sObject type. I know I can filter the id values after ...
2
votes
2answers
44 views

Getting Lat and Long in SalesForce

I'm new to SalesForce and I'm working on an app that requires me to calculate distance between two given addresses. User enters 2 addresses and then I calculate the distance between those two ...
0
votes
0answers
5 views

How to fix 'retrieveDate' function in FUEL SDK?

I have successfully setup exacttarget FUEL SDK and have started manipulating the data. When I set a date in the 'retreiveDate' variable, the data is not showing variables after that date I had ...
0
votes
2answers
14 views

Command button action without a form? [duplicate]

I'm trying to remove an apex form object from my visualforce page. All it does is wrap a commandButton like so: <apex:form > <apex:commandButton value="customAction" action="{!customAction}"/...
1
vote
2answers
14 views

VF Test Class: Pass id to controller at start

My visualforce page is opened via button on a custom object called Employee. Here is the button code: Behavior - Execute JavaScript OnClick JavaScript window.location = 'apex/EmpMerge?hbsId={!...
1
vote
0answers
17 views

Static resource won't refresh

I have a static resource with is a Javascript file of about 1mb. After successfully uploading the file, and clearing the cache of the page that uses the static resource, it's still using the old ...
0
votes
2answers
40 views

NullException in Apex Class

My below code is getting a NullPointerException: LINE 38 Account_List_vod__c acctListRec = nameToAcctListMap.get(affRec.To_Account_Value__c); I am unsure why I am getting this NullException. ...
2
votes
1answer
25 views

Creating records via an API - which user to use

I have recently been introducing some online forms and interfaces with Salesforce. They are all working well which I am very happy to report!!! My question is, at the moment I am using my own user, ...
0
votes
1answer
18 views

Get seconds and milliseconds from date/time in formula field

Is there a way break out the seconds and milliseconds from a date time field in a formula field? WHY: I want our crew people to use check-in and check-out from their mobile device. However, if they ...
1
vote
1answer
10 views

“Client Cross Frame Scripting Attack” flagged by Checkmarx scanner

I have a page where the users can click a link which opens a popup window to start the OAuth connection/flow. However this page is getting flagged by the Checkmarx scanner as a possible "Client Cross ...
0
votes
2answers
15 views

Query with relationship fields

I read some other questions but I'm still having trouble. I' ve got Custom object A and B. A has got a LookUp relationship field on B named LookUpB__c. I'd like to get the value of Name of B. This ...
0
votes
1answer
14 views

How to Query Account Records in PHP

I'm using the following code to upload an attachment to an Account record, currently it's working but I have the Account Id hard coded while I test. Now I'm trying to figure out how to query Accounts ...
2
votes
1answer
14 views

Salesforce Classic / Inline VisualForce Page - Can an inline VF page be edited while editing the main record (at the same time)?

Pretty simple question I think - but I googled it and searched for it on Salesforce stack to no avail so far. I have an inline VisualForce page (using the standard controller obviously) that sits ...
3
votes
1answer
26 views

“Multiple Forms In Visualforce Page” caught by Checkmarx scanner

One of my pages was scanned by Checkmarx and it's returning this flag "Multiple Forms In Visualforce Page" Indeed in my page I have several form tags like so: <apex:outputPanel rendered="{! $...
0
votes
0answers
17 views

aura:clientOutOfSync exception when calling from Lightning after a while

I have a Lightning application, which is running in a Visualforce page, so it can be accessed from Classic Salesforce. If I open the page with the app, use the app for a while, then leave it for a ...
2
votes
0answers
16 views

Changing approval process approvers via Apex

I'm trying to change the approvers for an approval process via Apex. Ideally I want to dynamically set 2 unanimous approvers through code, but I can't figure it out. I have the following code: ...
0
votes
2answers
22 views

instantiate a new sobject record in lightning controller

I havent been able to find any sample js that clearly describes how to instantiate a new sobject from within a lightning component. Lets say I want to create a list of new custom sobjects named foo (...
3
votes
1answer
42 views

24 hours format from date/time field

I need to extract the hours from a Date/Time field in the format: 12:00, 13:00, 14:00, 16:00. Right now I'm using this function: "Date/time field".format('hh:mm:ss a'); But the hours comes in the ...
0
votes
0answers
10 views

Salesforce1 app still giving error after latest release

There are users in our org still receiving an error(infinite loop) while accessing the Salesforce1 application even after the latest update.  The only way I can get them into the app without an error ...
1
vote
1answer
18 views

Grey Out Area Using Visualforce

How can I grey out a whole pageblock using Visualforce? This is to give user the idea that all records contained in an area are locked and can't be edited. Meanwhile, here's my vf page: <apex:page ...

15 30 50 per page