0
votes
0answers
2 views

How to do a SOQL Query of DAY_ONLY on a DateTime field?

Here is the problem. We use Stripe to process credit card payments, and Stripe deposits the money into our account two days later, minus fees. I've created a schedulable class that runs every ...
0
votes
0answers
10 views

Creating a Workflow Rule using the Metadata API and MetadataService class

Without using the Migration Tool, I need to create a workflow rule using apex and this MetadataService class. I have the following code, and it does run, however I get a exception in my custom class ...
0
votes
0answers
9 views

How to add new Action buttons to related list?

We are using the Service Console app to log incoming calls as cases. Our current process is to use Global Search to find the Account, find the contact and create a new case on from the contact. I am ...
2
votes
0answers
23 views

Criteria-based field-level security

I have two Departments who each have different sells, based on a custom object. I would like for Dept A to only see certain fields in the sells which are created in Dept B - and vice versa. If I ...
0
votes
0answers
4 views

Open a case record in Salesforce 1 app, when i click a button in the Component(ID is dynamic)

I have developed a lightning component as below. I have a Lightning Component Navigate.cmp. In that a Button is there. When i click that button it should open a record of case there itself means in ...
2
votes
1answer
13 views

Filter Wrapper Class and display result in VF Page

I am trying to filter the result of a Wrapper class. For example, I have a list that populates a table with 3 rows but I would like to display the same table filtered based on Name which it should ...
0
votes
0answers
8 views

Open a case record in Salesforce 1 app, when i click a button in the Component

I have developed a lightning component as below. I have a Lightning Component Navigate.cmp. In that a Button is there. When i click that button it should open a record of case there itself means in ...
2
votes
1answer
29 views

SOSL Pagination

I am trying to implement pagination for SOSL search. It queries Accounts and Contacts. I thought of utilizing StandardSetController but it seems not possible with SOSL. Per documentation, SOSL can ...
1
vote
0answers
18 views

Using checkpoint

Following is the class I am using for checkpoint and executing the same from developer console. I am unable to see any checkpoint values as shown in the image below: . public class checkpoinTest { ...
1
vote
1answer
20 views

Content cannot be displayed: Illegal assignment from List<QuoteLineItem> to List<QuoteLineItem>

In our org's STAGE environment, I ran the following code anonymously in the dev console, intending to clear data from a pair of custom fields for ~400 QuoteLineItem records. void clearOStatusAmtPd() ...
0
votes
1answer
11 views

write a test class that gets a Flow.Interview

I have created a Flow that creates a "quick case". I have a VisualForce page that has a "Quick_Case" apex class as a controller that gets the Flow and returns the landing page once the case is ...
2
votes
1answer
19 views

Create OrderItem (Order Product) from Bulk upload Object

I have created a Custom Object called CSVUpload__c that I insert a CSV file into using the Bulk API. I have created a trigger to then insert into the correct sObjects after the insert. However, I ...
4
votes
0answers
28 views

Why are static variables allowed only in outer classes?

According to the documentation, static variables are allowed only in outer classes. Why is that? Is it because you'd need to instantiate the inner class first? ...
2
votes
1answer
46 views

I need to hide fields on certain accounts when a button is clicked

I have a button I use to connect to an external application. When that button is clicked, the external application deletes data from certain fields on the account where the button has been clicked. ...
1
vote
1answer
23 views

How can I compare a field to another field in a different list through a SOQL WHERE clause?

I am building a Visualforce PDF page with a controller extension to display details from the parent object and child object in the same table. The table's first two columns reference the records list ...
0
votes
1answer
15 views

Visualforce inputfield focus by keypress

I wanted an expert's advice on how should i bind my input text field to a particular keyboard keys (Ctrl + P) such that the text field gets in focus. Also, how should i make dynamic growing text ...
2
votes
1answer
11 views

Inter Community Chatter & User sharing [on hold]

I am trying to build up a community design where I have multiple sets of users - lets call them CONSUMERS, ORGANISATIONS, PARTNERS, DISTRIBUTORS, PRODUCERS etc. and then we have the INTERNAL employees ...
1
vote
1answer
9 views

Unable to view service provider under identity provider

i have enabled the identity provider setup and filled all the correct details on SAML with the Metadata, i have also created a connected app and enabled SAML and filled the Entity ID with the ...
0
votes
1answer
17 views

Trigger on EmailAfterInsert

i'm facing an issue with this trigger on EmailMessage after insert. What i want is simply catch email body from email message and populate a specified field on cases. The trigger works fine but when i ...
-1
votes
1answer
13 views

How can I share a particular account using manual sharing?

I want to share a particular account to different users in organization.I try to use the sharing button on the account record and when I try to add that users,it shows me the message that selected ...
1
vote
1answer
32 views

Issue on JSON array model

I am trying to create a JSON array but when I try to run the code I am getting an error System.JSONException: Can not write a field name, expecting a value My code : public void ...
1
vote
0answers
13 views

Unable to login to Community

I have a free development account and created a new community in it, When I click on the link in Customize -> All Communities it will open the community page with me logged in. But if I try to login ...
-2
votes
1answer
20 views

Count number of levels of parents

IB_ID__c String IB_ID_CODE__c String IB_Level__c Decimal IB_ID_CODE__c= A IB_ID__c = null IB_Level__c=1 Now IB_ID__c is field with IB_ID_CODE__c of some other record.its kind of parent child but ...
0
votes
2answers
29 views

How to change date formats from this to DD.MM.YYYY?

I am currently sending emails via Mandrill and SF sends dates like this: 2015-09-08 - How do I format the date to be in DD.MM.YYYY format. At the moment I simply do: webinarLocale.StartDate
-1
votes
0answers
11 views

Failed to parse WSDL: Unable to find element for headerContextParameters [on hold]

Failed to parse WSDL: Unable to find element for {http://ws.org.com/ProductPriceInquiry/2013-02-11/productpriceinquiry_V2_0}headerContextParameters
-1
votes
0answers
17 views

test method for Massapproval process

I am beginner with apex test classes and i need to test Massapprove Method which is returnning Pagerefrence.. Please see my actual method code in Main class.. public PageReference ...
0
votes
1answer
28 views

Can I export 8000+ contacts reports at once or should I use data export.io?

Can I export 8000+ contacts from reports at once or should I use dataloader.io?
1
vote
2answers
46 views

Javascript button to activate the method of apex class directly

I have a javascript button on my product layout named "ListToEbay" and I have written a controller to invoke the EndItem() service method of ebay api. Below is the method:-- public void ...
0
votes
1answer
41 views

Salesforce Certified Platform App Builder Exam [on hold]

Has anyone here taken the new Force.com Certified App Builder exam? The one which replaced DEV401? Could I ask for any study materials/tips/exam experience on that?
4
votes
2answers
290 views

Omission or inclusion of curly braces in for loop logic - what is the difference?

I see differences in use of curly braces in for loops quite frequently. One style is to be very explicit with the curly braces at the end of a for/if statement. For example: for (Opportunity opp : ...
0
votes
3answers
30 views

Unable to login into Data Loader

When I try to login into data loader, I get a login error. I am sure that I am using the correct username and password, but I am still unable to login.
2
votes
0answers
7 views

LiveAgent - StartChatWithWindow: wrong Chat Page

I have set up a Live Agent. Suppose a chat has begun between a client and the operator. At the end of this chat the operator ha the chance to give to the client a link that he can use in another ...
-1
votes
1answer
15 views

Failed errors occur during Passing the test class in sandbox.Please suggest me how to solve it with writing the code for it

Here is the Rest Lead apex controller: @RestResource(urlMapping='/v2/setLead/*') global with sharing class REST_Lead_Controller { @HttpPost global static String createLead(String email, ...
0
votes
1answer
32 views

Unable to increase code coverage for if-else condition in test class?

I have covered 33% in my test class .Need to increase code coverage.please do needful.. apex class: public class RFLEET_ProtocolDynamicGrid { public string Id; public string selcontactid ; public ...
2
votes
1answer
16 views

Apps use same objects

When I create a new custom object, it can be used in many apps as defined. And the data of object can be shared. Can I restrict this object is only used by a specific app? If not, please tell me why ...
0
votes
1answer
13 views

can we hide dependent picklist on vf page by java script according to the values of controlling picklist in salesforce

I am using a controlling and dependent picklist on vf page. Dependent picklist is a multislect picklist. When i select value in chosen column of dependent picklist and change the value in controlling ...
0
votes
2answers
43 views

How to Convert String into Salesforce Object Field

Is it posible to convert a string who has a value of field name into a salesforce object field. For example I have a String strvalfieldname = 'Desription__c'; and i want it to convert into the Product ...
1
vote
0answers
7 views

Search layout meta-data value is an Id value instead of field name

I created a new field on user in production environment and assign the field to Search Layout->User Lookup Phone Dialogs, after doing this I pulled the meta-data for this environment and checked the ...
0
votes
1answer
38 views

Need to write Test Class…for get Methd

I am at beginning level in salesforce.. I need to write test class for a class in which i have confused how to go with get method code coverage..Can anybody help.. Please see my class method as ...
1
vote
1answer
22 views

Development on a single VF and apex class

I don't whether this question should be posted here, because this is related to dev process not any issue with salesforce. My issue is: we 3 are working in a same org, i.e: 2 guys are working on a ...
3
votes
2answers
121 views

REST API Inbound Integration - Quick Question

Need your inputs for our following requirement. We have a team of folks who want to have a list of Cases (with selected fields) from our Salesforce instance. None of these folks have access or ...
1
vote
1answer
19 views

ADD or SUBTRACT hours from TODAY and YESTERDAY functions in soql

I have to run a load every 6 AM in the morning, so just wanted those records that have been updated or created since this time i.e yesterday 6 AM and today 6 AM. I was thinking to use a logic to add 6 ...
-1
votes
1answer
14 views

Updating Contact Owner for All Records Using Sandbox

I have a small database of about 300 contacts and my company is looking to implement a new mapping system to assign each contact to a sales rep. After I have exported the data, cleaned up any ...
-1
votes
2answers
15 views

Changing Page Layouts in Production using Sandbox

I am trying to simplify the fields for the account, contact, and opportunities page layouts in my company's salesforce account. To do this I have begun by creating a new page layout in the developer ...
6
votes
3answers
61 views

how to Get API Server Name in Apex code

I was wondering if there was any way to get the API Server Url in apex code ex . API.Partner_Server_URL_280 Or how to pass the value from VisualForce to apex. I tried <apex:param ...
1
vote
0answers
14 views

Unlock self login id

I have system admin profile. I am trying to connect to Sandbox(Developer Pro) from IDE Eclipse. My id is getting locked out and not able to connect and throwing login error. However I can connect to ...
4
votes
0answers
24 views

how to hide salesforce email address?

I have a requirement where... my company works for different clients(like Orange, Apple, Avacado,etc.) and it's customers. We send requests and quotes to different customers on behalf of different ...
-1
votes
1answer
26 views

How to retrieve last character of string? [duplicate]

I am trying to find something similar to JAvascripts charAt() to get the last character of a String. I am trying using indexof and I just can't. I get the first value returned. Thus, I tried doing it ...
-1
votes
1answer
28 views

SOQL query all tasks and events with opportunities and any connected campaigns

I'm fairly new to SOQL but I need to write a query that returns all activities (Events and Tasks) that are associated with an opportunity. In addition I'd like to get any campaigns that are ...
1
vote
1answer
17 views

Case Page Layout not showing for a specified profile

I've created a Record Type for Cases, then a new Page Layout and assigned it to a specific Profile. This doesn't seem to work, when I log in as a user, I still get the same old Case Page. Any ...

15 30 50 per page