Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [developer]

The tag has no usage guidance.

1
vote
1answer
9 views

How to validate a encrypted field

on the best practice section of this documentation: https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/fields_about_encrypted_fields.htm it says: You can ...
-2
votes
0answers
13 views

Unable to get Campaign in Lead even there is standard lookup [duplicate]

I try to fetch the lead records as List<Lead> ld=[Select id,name,Campaign from lead]; but I am unable to fetch the records. it showing an error ERROR:-No such column 'Campaign' on entity 'Lead' ...
1
vote
1answer
17 views

I want to connect my salesforce for POST services to an external system using my server

I am getting 'Service Not Available - 503'. But when I try with postman, it working fine. I have also update remote site access as well. Please specify if some setting needed regarding IP or ...
0
votes
1answer
33 views

Related search for lookup. I have 3 different obj, Opportunity, Brand__c and Corporate__c

Flow is, 1st I register Corporate(Independently) and then brand. Each brand is associated to one corporate. In opportunity I want to choose Corporate which is a direct lookup and then Brand. Question ...
0
votes
0answers
14 views

Script to add visualforce page to Site 'Inactive Site Home Page'

Is there any way i can automate the process of adding a visualforce page to active sites 'Inactive SiteHome Page' upon creation of sandbox using SandboxPostCopy ?
0
votes
1answer
12 views

Oauth2 - Refresh Token Flow for Sandbox

Is there any other way to get refresh token in Oauth2 flow for sandbox using the same url (login.salesforce.com) as the url for production? We figured that we get 400 because we used this url and not '...
2
votes
2answers
60 views

Create a validation rule to check that a contact is in the zip code of its account

I think i misunderstood validation rules, so i answered the following challenge creating a validation rule that only applies if the insertion is different for what i write in the rule: AND(ISBLANK( ...
1
vote
1answer
262 views

No option to ask a question in https://developer.salesforce.com discussion forums [closed]

I am trying to ask a question on https://developer.salesforce.com Discussion Forum, but there is no link/button to ask a question there. Please guide me as to where can i ask a question there...
-1
votes
1answer
22 views

In apex how to know the whether a batch is schedule or it's running?

I want to know the status of a batch like whether it is schedule or it's running
0
votes
0answers
23 views

How to send data which increases after the base64 encoding?

I'm trying to send an attachment through api call, my file size is 4.5mb which increases to more than 6mb after base 64 encoding. and it start throwing error of 6 mb limit which salesforce support for ...
3
votes
2answers
309 views

lwc: sfdx unable to retrieve lwc files

I am currently working in a dev org and I have installed the LWC e-bike component (https://github.com/trailheadapps/ebikes-lwc/tree/master/force-app/main/default/lwc/orderBuilder) When I create the ...
0
votes
1answer
15 views

How to make a call out from batch which (batch) get schedule from trigger?

I'm trying to call a method which do an api call. But I'm getting an error because this method get call through the process ran by batch and this is getting schedule from trigger. So even if i ...
1
vote
1answer
25 views

Setting a From Address while sending Email

How do we set From Address while sending email using messaging.SingleEmailMessage. I have got a solution which uses setOrgWideEmailAddressId to set from address, OrgWideEmailAddress[] owea = [...
1
vote
1answer
623 views

Error: SFDX Deploy source to org

Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file. Add this location to your ...
0
votes
1answer
333 views

SFDX: Create a Default Scratch Org… failed to run [duplicate]

ERROR: The signup request failed because this organization has reached its active scratch org limit. 11:13:42.653 sfdx force:org:create -f config\project-scratch-def.json --setalias treailhead --...
0
votes
1answer
74 views

How to upload large files in Lightning?

I am loading lightning page through visualforce page. I know Salesforce provides lightning tags for file upload but it does not work when you are loading lightning component through Visualforce page. ...
0
votes
1answer
82 views

Pros and cons of lightning view? [closed]

What are the pros and cons and the different between classic view and lightning view? (as a developer) .. beside the different of the UI (ofcourse it looks more cooler and user friendly).. I dont ...
1
vote
2answers
88 views

Create List of Strings from Another List of Object Records

I am new to Salesforce development and I am trying to practice by creating a list of strings deriving from another list of object records created from a query. My code is the following.... public ...
0
votes
1answer
20 views

Are there any good resources to learn force.com sites? Like blogs, Video tutorials etc? [closed]

I need to learn force.com sites development. There are no trailheads as far as I know. So are there any blogs or video tutorials to help me learn this?
0
votes
2answers
51 views

How to get IP of someone downloading files

I'm writing a class that implements Sfc.ContentDownloadHandlerFactory and I want to know on each download attempt, the IP of the person who downloaded the file. I'm aware of UserInfo.getUserId() but ...
0
votes
1answer
360 views

Is there a way to get the list size from map<string,List<Sobject>>

Is there a way to get the list size from a map<String,List<Sobject>>. I don't want the size of the map which can be evaluated using map.size(). I am looking for the size of the list in ...
1
vote
1answer
83 views

How can i override Account standard new button with lightning component for managed package?

I have already overridden new button with the lightning component in my org but when I make a managed package out of it and install it some other org, it doesn't override it, we manually have to do ...
8
votes
0answers
667 views

Debugging Lightning Components worse in Communities in Winter 19? [NoErrorObjectAvailable] Script error

Debugging little javascript errors has become a nightmare (again.. feel like this is how it was a year ago and earlier). Simple errors it seems, like referencing a controller method that does not ...
1
vote
1answer
76 views

Apex Generation Failed - WSDL problem - SOAP

I'm trying to solve this problem with Salesforce. I'm trying to generate apex classes from WSDL (converted from WADL) Parsing works correcly without any errors and warning. But I can't generate the ...
0
votes
0answers
26 views

Lightning component on field number doesnt allow component.set in production but ok in sandbox

I have created a component, that consist of 2 checkboxes, and 4 fields (3 currency fields, 1 number), and a button that save this into a related record. I have seen some similar questions asked ...
1
vote
1answer
44 views

Combining result sets from SOSL query

When I query SOSL with multiple RETURNING objects, the result comes as a list of lists, each for a different sObjectType, each sorted by default by the "relevance" of each record in the result set. ...
-1
votes
1answer
57 views

Refactor SFDC data model? [closed]

I recently joinged a 400+ SF users  company as architect. I observed previous implementation were not as per best practices and lead to bad data quality and Insights. I have been asked by business to  ...
2
votes
1answer
160 views

Journey Builder: how to integrate async results from a Custom Activity in flows & statistics/reports?

(This is a rookie question, sorry if my question is based on wrong or inaccurate premises). I'm trying a build an understanding about how Journey Builder - and Custom Activities in particular - work (...
0
votes
0answers
47 views

Getting error when Clicked Chrome Browser Back button from VF page based on List View

I have a VF page which when displayed errors on Save and then at that time if user clicks on browser back button one time it leads to a browser error page with error "This webpage requires data ...
0
votes
1answer
93 views

Auto Task Creation

I have created Flows and Process builder process for renewal opportunities, where renewal opportunities are created 1 year from the close date of current opportunities. Now business user requirement ...
5
votes
1answer
99 views

Is there a free licence or alternative pathway for a solo developer to release an app using DX?

So I'm currently working as a Salesforce developer. I have a few ideas for apps /cli plugins that I'd like to develop and release in my own time. To do this in the way I want to work, I need: - Vs ...
1
vote
1answer
28 views

Is it possible to try DeveloperX orgs (DevHub) in Salesforce Enterprise Trial Edition?

I was wondering if this is possible to try out without touching the real Production environment. It seems we cannot create APEX in Enterprise Trial. It seems like they haven't allowed any ...
-1
votes
1answer
72 views

how to coverage this method on the class test?

@AuraEnabled public static Map<String, object> botaoExportarNovo(Map<String, object> btnExportar){ Map<String, object> mapaObj = new Map<String, object>(); ...
0
votes
1answer
20 views

Upsert everynow and then creates a duplicate

Every now and then I have a duplicate account been created from a piece of code that looks like the one below, where there is only 1 upsert in the whole code. I am wondering why sometimes it creates ...
1
vote
1answer
2k views

Git: no changes in this file have been detected, or it is a binary file

I have refreshed a sandbox a few weeks ago and since then all the files in the repository are "marked" like if there was a difference but they are not, showing the message: No changes in this file ...
0
votes
1answer
421 views

Integrating Knowledge into an existing website

I'm looking into leveraging our existing presence on Salesforce to create a help resource for our customers. My problem is that I am completely unfamiliar with Salesforce and need to somehow integrate ...
1
vote
1answer
338 views

PDII certification

I have completed all four of the super badges, Apex Specialist, Data Integration Specialist, Lightning Component Framework Specialist, and Advanced Apex Specialist. Is it OK to appear for the ...
2
votes
2answers
181 views

Is it possible to run a CloudPage locally?

If you're familiar with CloudPages, you will have noticed the lack of a proper debugger. If the page fails, the only error you get is a "error 500 internal server error", this is not useful at all ...
0
votes
2answers
19 views

Error in Territory Name

I need to get the Name of the Territory to assign it to a field, but when I try it, it generates an error. this is my code: List<UserTerritory> myList = [ select Id, UserId, TerritoryId ...
1
vote
2answers
41 views

In csv file getting system.Address[getCity=xxx] how can i handle this

I'm working on csv files for specific standard object. In this i'm querying the fields dynamically in batch class and it was created a .csv file in my document folder but when i was open my csv file ...
-2
votes
1answer
97 views

External website doesn't login ondemand through iframes?

public class CreateEvent{ public Test__c login; public CreateEvent(ApexPages.StandardSetController controller){ this.login= (Test__c)controller.getRecord(); ...
2
votes
1answer
226 views

How can i make a lead conversion fail in test class

I have a trigger to convert Lead to Contact. For some reason it wasn't converting some automated incoming leads. To figure that out, I added Email Messaging so anytime it fails, it will send an error ...
1
vote
1answer
133 views

Regex when set up in custom setting not working giving error

I have set up a regex to match couple of strings. When I use this regex in Apex class directly as string, it works correctly. However when i use the same regex from a custom Text field in Custom ...
-2
votes
1answer
165 views

How to save the related list data changes from visualforce page?

I'm trying to save the data from visualforce page to salesforce.But after click the save button no action performed. Please check it once this line <apex:commandButton id="saveBtn1" value="Save" ...
0
votes
1answer
232 views

How to update the lookup field with passing the string value of name?

This line doesn't update adobeevent.LightiningEd__Webinar_Attendees_Status__c = userNode.getAttributeValue('Name', null); LightiningEd__Webinar_Attendees_Status__c field is the lookup field Name ...
-1
votes
1answer
80 views

values are not receiving dynamically in REST API

I wrote the batch and pass the values to REST apex class but when executing the endpoint url it doesn't take the values of fields it only takes names. this is my batch job global class ...
0
votes
1answer
226 views

Global Phone Numbers formatting

I am looking for a way to format Phone numbers on global standards in Contact object based on the Users Locale, as default for USA and Canada platform formatting the as (EX: (897) 814-8981) base on ...
-1
votes
1answer
38 views

returns empty() values

I'm trying to retrieve the contact's account opportunities i gathered all opportunities but when i'm trying to retrieve all opportunities it printing empty. this is method @AuraEnabled public ...
2
votes
1answer
567 views

Dev Hub missing in Setup

I want to enable Dev Hub in my Production Developer Salesforce Org. I'm in Lightning mode as an Admin. If I go to Setup, and type 'Dev Hub' in the Quick Find box nothing appears. How can I find this?...
0
votes
1answer
47 views

Is it good option to host Java based web applications on SalesForce [closed]

can anyone explain me the following queries regarding web application hosting on Salesforce since i am very much new to the Salesforce Can we deploy enterprise java based web application? or should i ...