Skip to main content

#Guest Users0 debatiendo

This is my first-ever post, so I hope it makes sense! I am working on a specific page (it's a feedback form of sorts) of our public-facing site that we'd like to make accessible without a login. I have updated the code to allow for this, but one quirky thing is happening. All of the fields on the form appear, but two fields, which are pick-list field types, are not displaying as drop-down lists for the guest user, only for logged in users.

 

I have researched and tested all kinds of field accessibility, sharing, and other potential permissions issues, but I just cannot figure out what the roadblock is. The user does have access on some level, b/c once the fields are populated, the values will appear, just not in the format of a drop-down list with the value selected. (If the fields are not populated, nothing at all shows up.)

 

This is the section of the Apex page that is misbehaving (the fields in question are Content_Rate__C and Delivery_Rate__c):

 

<apex:repeat value="{! timeslots}" var="timeslot">

<tr>

<td class="slds-truncate"><apex:outputField value="{! timeslot.Event__r.Session_Title__c}"/></td>

<td class="slds-truncate"><apex:inputField value="{! timeslot.Content_Rate__c}"/></td>

<td class="slds-truncate"><apex:inputField value="{! timeslot.Delivery_Rate__c}"/></td>

<td><apex:inputTextarea styleClass="comment" rows="5" richText="false" value="{! timeslot.Comment__c}"/></td>

</tr>

 

I'm happy to provide any additional info that might be relevant.

 

Thank you for your thoughts!

 

--liz

 

#Guest Users #Site Guest User #Field Accessibility #Public Sites 

10 respuestas
  1. 4 abr 2022, 15:07

    @Pratibha Jamdade - I was never able to resolve this issue. I am chalking it up to the guest user permissions updates over the last year+.

0/9000

Hi..does anyone know how a Guest user licence work.. There are two profiles associated with the Guest Licence...(Guest community user and calendars profile) There are one user assigned to each profile.. As much as I know if a user is assigned this licence then they don't require log-in to access.. However if they don't login then how do they access the relevant sites? #Licenses #Guest Users #Unauthenticated Guest Users

0/9000

I am developing a Contact Us flow for our website.  Each DML-operation of a flow is a subflow that runs in system context without sharing. Everything works fine in debug mode run by site guest user, but when I try it on a test site, the flow fails at task creation. I tried running the parent flow in system context without sharing too, this has no effect obviously.

 

The owner assigned to the task is a real org user, not site guest user. Site guest user profile has Access Activities enabled AND has access to Task fields I'm using. 

 

I've read that tasks cannot be owned by site guest user, but I should be able to create them, nonetheless, shouldn't I?  Please help and thanks in advance. 

5 respuestas
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    28 oct 2021, 20:32

    Within the site I'm assuming you've already specified the Default Record Owner ?

    There is a similar issue noted here but not with any workaround that's been proven currently

    https://www.google.com/url?sa=t&source=web&rct=j&url=https://salesforce.stackexchange.com/questions/33174/guest-user-record-create-task-permissions&ved=2ahUKEwjBg56e-e3zAhXMYMAKHXBbCZ4QFnoECAcQAQ&usg=AOvVaw2Osffk5ptK7oDCaLKuJsIn
0/9000

Hello ! Can someone help us to understand how to let guest users update records (insert Account Id on Case+ chatter post) in a flow please ? Profile and permission are properly set up ... 

Thank you very much for your prompt support ! 

 

#Guest Users #Digital Experience Platforms #Flow #Profile Permissions

2 respuestas
  1. 30 ago 2021, 07:13

    Thank you , actually we already run the flow in system mode and it does not work 

0/9000

We have a public community set up for customer support, which includes Knowledge Articles and the Files associated to them. When the Guest User clicks "view all" on the Files section, they're able to see Owner and Last Modified by, but we want that removed from their view. I tried changing their default search layout, which didn't work. I tried to update the field access but those fields are locked. The File related list on the Article layout also doesn't give me anything to work with. 

 

#Guest Users #Site Guest User #Knowledge Articles #Experience Cloud #Field Accessibility #Service CloudAny thoughts?

2 respuestas
  1. 9 ago 2021, 13:19

    Hi @Manoj Nambirajan, I tried that out but it doesn't effect the list view at all, when I click "View All" from the Article page. I noticed even when I go into File Details as the Guest User, while the field isn't on the layout, it is still showing on the Highlights section on the top.

0/9000

I have a question. Imagine that in a salesforce org there is an object called Form__c. This object stores all the fields of a form that is hosted as a visual force page.  If I remove object level Read/Write access and sharing settings, will guest users still be able to access it? In my org I have: 1) Removed all sharing settings for guest users 2) Disabled API access/apex Rest service 3) Restricted FLS read/write.  It seems the Guest users can still access records, how does that fit in?  #Guest User Security #Site Guest User #Guest Users #Guest User Security #Security 

1 respuesta
  1. Takaaki Motohashi (PERSOL CROSS TECHNOLOGY CO., LTD.) Forum Ambassador
    7 ago 2021, 12:12
0/9000

I have two custom objects, one of them is the parent of the other and I need to create a record type of the child (Into the guest profile I check Read and create of the child object) but when I try to create it, the following error raise:  "INVALID_CROSS_REFERENCE_KEY: Record Type ID: this ID value isn't valid for the user " and that is because the child object is in "Controlled By parent" and for the default, the  "Secure guest user record access" is checked and it means that the child object has "Default External Access" in private by default and I CAN'T change that.

 

#Guest Users  #Sharing Settings  #Controlled By Parent

1 respuesta
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 respuesta
  1. 16 jul 2021, 01:08
    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've noticed that lately none of our community pages are loading up for guest users only on chrome

We seem to be getting an error related to permissions however I'm not sure what exactly we need to do :)

 

Errors we're getting -

 

aura_prod.js:900 Uncaught (in promise) Error: initializeInternal(): error opening DB: The user denied permission to access the database.

at sI (aura_prod.js:900)

at IDBOpenDBRequest.c.onerror (aura_prod.js:897)

6 comentarios
0/9000

Can we do a checkout in lightning storefront as a guest user?

As we know, when we visiting a store as a guest user in lightning b2b storefront, We can only browse PLP and PDP page. So my question is can we do an end-to-end checkout in B2B/Cloudcraze lightning storefront?

I am working on that Like I am making a custom Component for that. But I am facing some issues. Is anybody or their teammate Implemented that?

0/9000