Skip to main content

#Force.com Sites0 discussing

I have a custom HTML email that has a "View in browser" option.  When that link is clicked they are taken to a Visualforce page hosted on a force.com site. I'm able to pass the contact.id and the contact.email parameters to that site URL, but then on the visualforce page there is a link to click to "Unsubscribe" to our emails and that link is associated with a flow on a different force.com site.  

 

I need to pass the Contact.Id and Contact.Email that is showing up in the initial force.com site URL to the Unsubscribe URL.

 

I'm not sure how to do that.  I'm thinking an Apex Class, but wasn't exactly sure....

 

Any help would be appreciated!

 

#Force.com Sites #Visualforce Pages #Sales Cloud 

6 answers
0/9000

I'm showing Reports in the salesforce site using Reports.There I want to show only one report folder how I can achieve this

 

How to show only one Dashboard folder in Sites

Here I want to show one one report folder. But in above it is showing more report folders. How to hide the remaining folders in Sites

 

#Experience Cloud

2 answers
  1. Nov 4, 2021, 1:16 PM

    You need to edit the sharing of each of your Report Folders. Click the dropdown arrow to the very right of each folder and then select Share. This will then tell you who, users (internal, customer and partner), public groups and roles that the folder is being shared with. 

0/9000
1 answer
  1. Oct 19, 2021, 6:27 PM

    Here is the info on it. Looks like the answer is no.

     

    https://help.salesforce.com/s/articleView?id=000358662&type=1

     

    Potential Impact of My Domain Enforcement in Winter ’22

    If a My Domain isn’t deployed in your Salesforce org before the Winter ’22 release, Salesforce sets one for you based on your org’s ID. If you prefer to use a different My Domain name, you can change it.  

    When you get a My Domain, your old URLs continue to work, and users can also use your My Domain URLs. When a user logs into Salesforce, their session uses your My Domain URL formats. For example, if users directed to https://na17.lightning.force.com/lightning/page/home upon login before My Domain are redirected to https://MyDomainName.lightning.force.com/lightning/page/home after a My Domain is deployed. Your old instanced Salesforce URLs continue to work unless you change your My Domain Policies to prevent it.   

    When you get a My Domain, these domains change:

    • Service Cloud Real Time URLs ending in .scrt.sfdc.sh change to the format MyDomainName.my.salesforce-scrt.com.
    • If the My Domain option, Stabilize Visualforce, Experience Builder, Site.com Studio, and content file URLs, is enabled, then Experience Builder for Digital Experiences URLs change. When this option is enabled, Experience Builder URLs end in *.salesforce-communities.com. If you don’t deploy a My Domain before the Winter ’22 release, this option is enabled when Salesforce deploys a My Domain for you.
0/9000

Force.com page is opening on all browsers but we are only able to login into it on Chrome, Edge, Opera, and Firefox. We would like the page to work on Safari and IE. As of now trying to log in returns a custom error. 

Any help would be appreciated.

 

#Salesforce Developer

2 answers
0/9000

I found that if I choose a domain name (e.g. uat-xxxx.ca128.force.com) in Sites and Domains / Sites I cannot use the same domain name in Digital Experience - although I can apparently create sites in both areas.

 

#Sales Cloud #Community #Experience Cloud #Force.com Sites 

2 answers
  1. Aug 11, 2021, 3:50 AM

    Hello @Kermit Del Rosario I understand the difference between domain and sites. However, in the setup area "Sites and Domains / Sites" you choose a DNS name for your site (the page explains that you can then use this domain for sites like /partners or /customers). 

    If you do this, however, and then go to the Setup path "Features/Digital Experience/ you see more or less the same : the option to select a DNS name for your sites (and the explanation that you can use this e.g. for /partners or /customers). You cannot choose the DNS name here which you had chosen in the first place - because it is already taken (by yourself!)

    So you end up with 2 different DNS names - but no clear indication which one to choose for your sites. You can even create sites at these two setup locations.

0/9000

Our business requirement is to create records of a custom objects from force.com site and we also want these records to be automatically submitted to approval through process builder. Although, the functionality is working fine if we are creating records from our internal org but while inserting the records from site it does not save the record and sends an email regarding flow error message saying "No applicable approval process was found". Please guide, if it is possible to use approval process and process builder with sites. Thanks

 

#Force.com Sites  #Automation

2 comments
  1. Jul 30, 2021, 2:38 PM

    Thank you Vineeth for your reply. In this case, the entry criteria is the same in approval process and process builder. And everything is working fine if we create the records internally. Also we are able to create records from site if we do not automatically submit it for approvals through process builder. But when we activate our process for the automation it gives the flow error and as it is the part of the transaction, the record doesn't save to database. 

0/9000

I've created a Flow using Flow Builder that takes in FirstName, LastName, Email and some responses to a few survey questions. These will be stored in a custom object "Customer Survey", which has Lookup relationships with both the standard "Contact" object and another custom object "Event".

 

I've followed most steps on this site (except those to do with Email Alerts):

https://automationchampion.com/2020/12/02/survey-powered-by-salesforce-flow/

 

I created a Force.com Site used for unauthenticated access of the Visualforce page as outlined in the steps 5, 6 and 7.

 

In addition, I have gone into the Site's Public Access Settings to give Read access for Contact and Event objects, Read+Create access for "Customer Survey" object.

 

The first step in the Flow is to Get Record of a Contact using the input FirstName, LastName and Email to find a matching Contact. If no Contact is found, a "Contact was not found" page is displayed, otherwise, the Flow proceeds to Get Record of an Event object using an Event Name text field, followed by a similar "Event was not found" page if no such event was found.

 

Finally, if both Contact and Event records are found and assigned to record variables, the Flow then Creates a Customer Survey record along with all the responses.

 

Testing the Flow from Flow Builder works well as expected. However, it just does not work when the same exact data is entered into the form hosted on the Visualforce page (not managed). It seems to fail at the first step when trying to Get Record for a Contact and always displays the "Contact was not found" page.

 

There is also seemingly no log or debug function to see what is going on behind the scenes. How do I diagnose the actual problem and solve this issue?

 

What I hope to eventually achieve is to have the the survey form be automatically triggered 1 day after the event ends, with the Event name and Contact fields pre-filled using data in Salesforce.

 

The customer would just receive a link in an email or text and be able to just fill in their responses without bothering with entering Name, Email or Event name.

 

I would prefer not to have just simple text fields for users to fill in their Names, Emails and Event names and then have to do manual matching later (if that's even possible).

 

#Flow  #Visualforce Pages  #Force.com Sites  #Custom Object  #Contact  #Guest Users

1 answer
  1. Jul 16, 2021, 1:08 AM
    Did you give the Guest User access to all the fields that are being accessed in your flow? Flows that are launched by a guest user will fail if the guest user doesn’t have access to all necessary fields (not just read access to the object).
0/9000

I created a public site for my visualforce. On my page, I'm don't using Apex class, just Visualforce.

 

My page:

 

<apex:page standardController="Curso__c" recordSetVar="cursos">    <apex:pageBlock title="Plataforma de Cursos do Mario">        <apex:form >            <h1> Bem vindo, escolha um curso e bons estudos! </h1>            <br/><br/>            <apex:pageBlock title="Cursos Disponíveis:">                <apex:repeat value="{!cursos}" var="curso">                    <h1>Nome: {!curso.Name}</h1>                    <br/><br/>                    <apex:outputText value="{0,date,dd'/'MM'/'yyyy}">                        Data do curso:<apex:param value="{!curso.CreatedDate}" />                     </apex:outputText>                    <p></p>                    <apex:image value="{!curso.Link_da_Imagem_do_Curso__c}" width="350px" height="200px" />                    <p>{!curso.Descri_o_do_Curso__c}</p>                    <br/>                    <button type="button" onclick="location.href='{!curso.Link_do_Curso__c}'">ACESSAR CURSO</button>                    <hr/>                    <br/><br/>                </apex:repeat>            </apex:pageBlock>        </apex:form>    </apex:pageBlock></apex:page>

 

In Developer Console -> preview, my page works and she list my Courses (list of Curso__c) !

 

public page visualforce don't work

 

But in my public site, the list don't works... 

 

Captur.PNG

 

This is link for my public site: https://cursosmario-developer-edition.na156.force.com/

 

He dont list my Courses... Why?? Please, help me

 

#Visualforce Pages #Force.com Sites 

1 answer
  1. Jun 25, 2021, 8:44 PM

    Hi Arthur,

     

    This is most likely a data access issue. Because you've set this page on a public site, then as far as security is concerned, it's running under something called the Site Guest User. This is a heavily restricted user that, by default, has no access to anything. You need to give it access.

     

    As with any user, you need to find the guest user profile (from Site -> Public Access Settings) and ensure it has at least read access to the Curso__c object and the relevant fields.

    Then, go to Setup -> Sharing Settings, and create a new Guest User sharing rule on this object to grant it access to the individual records.

0/9000

Hi Community- 

 

I have built out a web-to-lead form on a Visualforce page and added that VF page to a Site to make it publicly accessible for us to send to prospects.

 

I have also created a Visualforce page that users are redirected to upon submitting the web-to-lead form that says "thank you for your submission". The link to the "Thank you" VF page is embedded in the form and I am successfully redirected after submission. However, public users are asked to log in to view the Thank You page. I have added the VF page in the "Site Visual Force Pages" section of the Site settings but a log-in is still required to view the redirect Thank you page.

 

Is there anyway to make this redirect page public as well? BTW- the site profile has read/create access to the Lead object, and leads are successfully created after submission each time.

 

Thanks for any help.

 

   #Visualforce Pages #Sales Cloud  #Force.com Sites  

1 answer
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    Jul 3, 2021, 11:52 AM

    Hello @Casey Brandon

     

    When viewing your site have you reviewed the Public Access Settings?

     

    This is where you grant public access to Visualforce pages, Apex classes etc. required to view and use your site.

     

    May be worthwhile reviewing this and making sure this profile has the necessary access. 

     

    Thanks, Tom

0/9000

Hi! As of last week we are suddenly getting this error message on an aura component webform that used to work fine:  {"message":"The requested resource does not exist","detail":"","output":{},"error":{"status":404,"body":{"message":"The requested resource does not exist","statusCode":404,"errorCode":"NOT_FOUND"},"headers":{}}}  The error message is popping up on our Production, UAT and Developer Sandboxes.  It's happening after the first record in the code is saved and before the child records are saved. FYI: The form works properly when run as us admins from the Visual Force preview page....but not when run correctly as our Customer User from the "Site"  Any clues?  We can't figure it out.  There was a Summer '21 update ont June 12th that we think must have caused this, but we checked Setup and our "Release Updates" are up to date.  Thanks Wendy  #Force.com Sites @* Salesforce Developers *@SalesForce Admin

2 answers
  1. Jun 21, 2021, 4:32 PM

    @Mohith Shrivastava Thanks for the reply.  There is so much code I'm not sure where to start.  The thing is, it was all working on all the servers and then suddenly after the Salesforce Update on June 12 it broke.  We were thinking other's must have had similar problems.  I'm hoping we don't need to change the code that was working.

0/9000