-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad Request #153
Comments
Hi,
Can you provide more details? Apex debug logs?
Are the survey responses being recorded? If yes then have you used any
THank you URL? Maybe that URL doesn't work anymore?
We have users who used the survey with enhanced domain and it has been
working fine. No issues were repoted
… Message ID: ***@***.***>
|
The problem is no survey response is being recorded and there is no log being captured in backend which is really confusing. The survey loads properly but which I click submit after entering all the details it gives me this error. |
I am not sure. This has something to do with Enhanced domains.
After you enabled enhanced domain, did you deploy it?
(It worked for me when I tested so not sure what maybe the issue)
|
Yes, I deployed it. Can you provide me how the survey URL was being formed in your case. As soon as I made changes on ViewShareSurveyComponentController I was able to see two options under select site on survey page where you click on Open Survey(New Window) any idea why it happen? |
In the old code, enhanced domains were not accounted for. I made the change
to account for enhanced domain because of some minor changes on how the
information is stored in Site and SiteDetail objects.
After you deployed my code, the site is now listed there. Without that
code, you will not see the site after enhanced domain.
|
can you please help me with providing the survey url how it was formed. I see there is an extra "s" character being appended so if you provide me how the url forms that would be very helpful |
That URL is created in
https://github.com/SalesforceLabs/survey-force/blob/main/force-app/main/default/classes/ViewShareSurveyComponentController.cls
Getter: sitesPicklist (Line# 52)
It queries "Site" and "SiteDetail" objects to get the URL dynamically. If
you had a previous site and now enabled Enhanced domains, it maybe because
of that.
You can run those 2 queries in Salesforce Developer Console (Query) and see
what is in your org
|
Hello, we have enabled enhanced domain in our sandbox environment and now while using the community site URL always gives bad request error message on submission of survey. Please help. Also tried modifying the class ViewShareSurveyComponentController as per the changes suggested but still it didn't help.
The text was updated successfully, but these errors were encountered: