Questions tagged [force.com-sites]

Force.com Sites technology is used to build public facing websites that run on the Force.com platform. The pages of a Force.com Site are built with Visualforce. Force.com Sites is one of the two Salesforce technologies, Site.com being the other, for constructing public facing websites.

Filter by
Sorted by
Tagged with
1
vote
1answer
50 views

File Upload Making as Public - Image is not Showing in HTML img tag

I am Uploading the Image from LWC page by using lightning-file-upload and Making the Image as Public accessible as Below ContentVersion cv = [select id from contentversion where contentdocumentid =:...
0
votes
0answers
41 views

How to access a Named Credential as a Guest User?

I want a Site Guest User to be able to hit a page that uses Apex to do an API call. However, if I create a Named Credential of type 'Named Principal', then that credential is simply missing from the ...
0
votes
1answer
22 views

SITE URL REDIRECT WITH DYNAMIC PARAMETERS (Public Access Page)

I'm trying to implement URL Redirect in sites along with dynamic parameters and this is not working. Working scenario : with no dynamic parameter. Below scenario works fine when this is no dynamic ...
0
votes
1answer
28 views

Notify user in client when Site.login() failed

We are using an Angular app on our Site. The Visualforce page just loads the script from a static resource and we're good to go. Some things are still done on the VF page (and controller). Like ...
1
vote
0answers
58 views

Can't download Attachment in Site

Until recently we were able to display Attachments to our guest user on our Site using a URL like Site.getbaseUrl() + '/servlet/servlet.FileDownload?file=' + attachment.Id But now, we're not sure what'...
0
votes
1answer
33 views

Authentication required error when inserting records with master-detail relationship on force.com site

I've got a force.com public site that is accessible without user login via guest user. For some strange reason, this site works 100% when it is inserting a record alone, but throws an error when ...
0
votes
0answers
18 views

Force.com Site URL Redirect Lightning Community

Does the Force.com Site URL redirect only work with the actual Force.com Site and not the /s Lightning Community? For example, if I create a redirect from /s/foo to https://www.google.com and ...
3
votes
0answers
32 views

Is it possible to select a default community when the root *.force.com domain is accessed (without the community URL prefix)?

Currently, my production org behaves this way: https://org1.force.com responds with 503, displaying a visualforce-based in-maintenance error page saying, "https://org1.force.com/community is ...
0
votes
0answers
28 views

Not able to create Contact using Sites in Salesforce using LWC

I have created a public Site and given permissions for the guest profile with Create and Read for both Account(Only Read) and Contact. Then I have given OWD as Public Read/Write for Account and ...
0
votes
1answer
24 views

Expose User Profile Images on a Public Site

Is there a way to show User profile images on a public (force.com) site? It appears not without having to resort to taking the image, base 64 encoding it and storing it somewhere it can access, but I ...
0
votes
0answers
28 views

Inactive page for community won't display static resources

I am developing a VisualForce page using the below css and html. While I've double and triple checked that the resources are in the org, public, and properly referenced, when I deactivate the org ...
1
vote
1answer
62 views

What are some challenges with building web apps using Salesforce as a back-end? [closed]

My company is developing a custom web app (PHP/React) that relies on a lot of data coming from Salesforce. The app is targeting external customers and not existing Salesforce users. Our initial plan ...
0
votes
0answers
22 views

Is there any way to Obfuscated JS code of Custom Components in Force.com Sites?

I noticed that the Aura Custom Lightning Component's JS code is easily readable on the browser when the components are used in a custom public site. Is there any way to Obfuscate that JS code? I ...
2
votes
1answer
54 views

Lookup field on VF page is not showing available choices on Force.com site

I have a visualforce page on a Force.com site that uses the Contact standard controller to create a new contact. I have a lookup field on the page which should pull a list of the location__c custom ...
0
votes
0answers
28 views

How to insert or update checkbox field from RestResource class?

I have a RestResource class which when accepts a POST request, i want to insert or update a checkbox field in a custom object. Here is the code: @RestResource(urlMapping='/**some string**/*') global ...
0
votes
0answers
19 views

How to pass field value from one page to other in Salesforce Site

I created Force.com Site in salesforce, it has 2 pages. First page is used to save the contact record and second page will be used to upload any documents to newly created contact. Here problem is I ...
1
vote
1answer
44 views

Summer 20 Release Guest Site - allow create custom object

We have a force.com site that has numerous VF pages to create a custom object. The Summer 20 release report says that we need to / will be forced to shut down access. I see that one can create sharing ...
1
vote
0answers
30 views

Get force.com site URL in Custom Formula Fields

Trying to populate the Site URL in Custom Field. Eg: siteUrl/ RecordId For this, I created New Custom setting and added the value in that filed and accessing the URL as below. $Setup....
0
votes
1answer
230 views

Insert Attchements by Site User - INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []

I am tring to insert attachements by setting a Custom Object Id as the ParentId. Operation is done as the Guest User(on a Site). Custom object has the necessary permission for the Guest User profile. ...
1
vote
0answers
26 views

Error downloading file on SF site

I'm having trouble downloading file that i've uploaded from the guest user on an sf site. (the file is uploadead by the guest user too) FYI : it was working and it just stopped recently. I'm using the ...
1
vote
2answers
113 views

upload a file in VF page to content Version is broken

I have a huge and complex vf page (force.com site) - So I will try to explain my issue with an example instead publish here all the code - I hope it will be understanble: I want to upload a file from ...
0
votes
1answer
46 views

Blank PDF attachment when try from site

I have a site, when a guest user insert some data into a inputText it triggers a record creation (HojaEntrega__c object and child records from HojaEntregaItem__c object), then an attachment creation ...
1
vote
0answers
54 views

Guest User access to Salesforce Tabs + Visualforce communities

So i have a requirement in which i have to provide 100 users access to Salesforce knowledge (read only) without having to create users for them in the org itself (to save license cost). In order to ...
0
votes
0answers
21 views

Is there any way to access custom object without login from an external site?

I have an app that sends emails to the customer. There is a link in the email which when clicked opens a visualforce page and shows a list of custom objects. I use this tutorial to achieve this. ...
0
votes
0answers
17 views

Metadata API - Change Site active homepage

I'm needing to change the active homepage of a Salesforce Site using the Metadata API but I can't seem to locate the junction object that is used to define the VisualForce page for a site. I've found ...
0
votes
2answers
32 views

How can I find the Secure URL for the public site by Apex?

We are using the following code to find the Secure URL for the public site by Apex List<String> siteFullUrlList = new List<String>(); List<Site> siteList = [ ...
5
votes
1answer
453 views

Our force.com site is not available

It is just happening!! All of visualforce can not open. DNS resolves nothing return. Even switch to Salesforce's DNS Server, it can not be resolved. Salesforce's DNS Server problem !!
0
votes
1answer
46 views

How do Site URL Redirects work?

I am currently working for a company that is in the middle of a name change and we are changing the My Domain as well as our custom URLs to the new name. I would like to redirect previous custom URLs ...
1
vote
1answer
31 views

How to package sites so it is available to other Orgs who installs my app?

In my salesforce app, there is an options to send emails to the user. The email contains a link on which when the user clicks, goes to a url and shows a visualforce page. The url is a Site Url, which ...
0
votes
0answers
32 views

Auto-populate lookup field works using onchange event but doesn't get selected

I have a Visualforce page where I have a lookup field Cleaning_Company__c. The Visualforce page is present inside a force.com site. I want this field to get automatically populated once the password ...
0
votes
1answer
39 views

How to make a force.com site mobile responsive in Chrome?

I have developed a Visualforce page and I have put it in a force.com site. I have added the <apex:slds /> to my code to make it mobile responsive but it is mobile responsive only in the VF page ...
2
votes
1answer
51 views

Error with Salesforce site after making changes to the VF code

The Visualforce page works fine when I preview it but when I add the VF page to a site it gives me the below error. I checked the public access settings and it looks fine. All the objects have CRED ...
0
votes
1answer
23 views

Getting startURL nullified on Customized Change Password page to login

I am using Custom Change Password page (built on VF) for Force.com site. The same page we are using for 3 different layouts - mobile, web and app view. For the app, I have put a logic that redirects ...
0
votes
0answers
25 views

Unable to view record using force:recordView in Salesforce Site

I have used force:recordView, in a Lightning component which is embedded inside a VF page. If I use this component I am able to see force:recordView, but when used on salesforce site its coming blank. ...
0
votes
1answer
65 views

How to pass Id in a encrypted format to public site in Salesforce?

I have created a public site where a VF page is exposed with a few URL parameter ( Id of a few objects ). Now I want to encrypt those Ids so that there is no security risk. I was trying to achieve it ...
0
votes
1answer
35 views

Secure Site URL direct to wrong instance suddenly

A customer has a Salesforce site with the usual two URLS xxx.force.com xxx.secure.force.com Everything was working until recently. As part of testing we did a nslookup and found the force.com url ...
6
votes
0answers
161 views

How to get a PageReference from Site.login(username, password, url) in an Apex Test

When I run this code from within a LWC controller: ApexPages.PageReference pageRef = Site.login(username, password, url); It returns a valid PageReference instance. But when I test the code in a ...
0
votes
1answer
27 views

Rich Textbox Images Not Visible On Salesforce SITE

I have created one VF page and used some images on it, these images are stored on records richtext box field, preview of VF page showing everything correct . but Now when I created the SITE for this ...
0
votes
0answers
22 views

More than one GET request inside a Apex Controller class [duplicate]

I used Creating an endpoint in Salesforce and using REST API to externally access it tutorial to print a list of custom objects inside a Visualforce Page in Visualforce Site. I followed the tutorial ...
0
votes
0answers
21 views

Community Site Path Prefiix has extra characters [duplicate]

Good day! I've been using Site.getPathPrefix() in my codes and they are working as expected. Recently, I deployed my apex codes in a different SF org and then the expected result of the method has ...
0
votes
1answer
34 views

How to add 2 attachments to a record created trough a force.com site without surpassing viewstate limit

I am working on a force.com site visualforce page where I create a record and want to add 2 required attachments in the same visualforce page. When I add the first attachment I reach the viewstate ...
0
votes
0answers
54 views

Remove guest user from community

We set up a community with a site and guest user access. Now, for security reasons, we want to remove the guest user access in Sandbox (keep it going in Production). Basically, regular guest users can ...
0
votes
0answers
14 views

Force.com site user authentication

We have an existing force.com site and due to the Site Guest User changes introduced with Spring '20 it has forced us to look at our user authentication mechanism. Does anyone have any suggested ...
0
votes
1answer
41 views

Subscribing to a platform event in a vf page that is a part of a force.com site

I have a requirement where i have to refresh the page automatically when a record changes, i'm doing this using platform events whenever an event is published the VF page that has subscribed to the ...
0
votes
1answer
321 views

Lightning Web Component on Sales-force's Public Site

I Created a LWC Components and Used in Visualforce Pages to make this page Public. For this I created New domain in my developer edition SetUp--> Sites, Created a new Domain name called preschool ...
0
votes
1answer
20 views

My Active site home page is not visible. It is showing the default template instead

This is my code that I have added to the link of active home page while creating a new site. <apex:page > <apex:includeLightning /> <div id="lightning"...
1
vote
0answers
42 views

Hitting concurrent Request Limit!

Because of COVID-19, a new urgent web-form has been created in Salesforce Service to receive the customers' requests. This new web-form was published yesterday through Sites and many requests are ...
0
votes
1answer
36 views

Can we put canvas app inside a public site? How this can be achieved?

I am trying to expose canvas app through a public site but I can see that it doesn't work. I can see that there is some request to /canvas/proxy.jsp which doesn't work inside a public site. Page Not ...
3
votes
2answers
322 views

'ParentId' field missing when deploying ExperienceBundle - 2GP

We are attempting to deploy a community (ExperienceBundle) through an Unlocked Second-Generation Package. The package will create fine but once we install it in an org, we get the following error ...
0
votes
1answer
101 views

Is there a way to get current site url

In my community site, I wanna get current site url in my apex class. I want to get the whole url, not just the domain part Instead of https://abc.site.com/ I want the whole https://abc.site.com/page?...

1
2 3 4 5
16