SalesforceLabs / survey-force

85 stars 61 forks source link

survey force was working - now not working for external survey #113

Closed garysecor closed 3 years ago

garysecor commented 3 years ago

noticed there was a new version as of -415 - did that somehow make 254 version stop working ? Any thoughts appreciated - it appears we will loose surveys we have created when we uninstall the 254 version and install the new 256 version - seems like a waste! help

jrattanpal commented 3 years ago

The version in your org should continue to work. New updates will not cause any changes in your org.

@dschach has helped clean up some code and add few more features. We do recommend you look into new changes but it's not required. Although, the upgrade process is not easy because Survey Force is un-managed package. We have suggested some options in documentation (towards the end of the page) at https://github.com/SalesforceLabs/survey-force

jrattanpal commented 3 years ago

What is the error that you are getting?

garysecor commented 3 years ago

No error—survey just not appearing unless you are logged in even for external survey – was working a few days ago ok.

Thanks

Gary

Gary Secor

Vice President CIO

Cloudtroupe

Direct 678-478-6776

@.> @.

http://www.cloudtroupe.com www.cloudtroupe.com

From: jrattanpal @.*** Sent: Monday, April 19, 2021 10:22 AM To: SalesforceLabs/survey-force Cc: garysecor; Author Subject: Re: [SalesforceLabs/survey-force] survey force was working - now not working for external survey (#113)

What is the error that you are getting?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/113#issuecomment-822505479 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AECPNHKP3KI2JTNN6NNCJ6TTJQ37BANCNFSM43E4PDYQ . https://github.com/notifications/beacon/AECPNHMI3EXBV5NX42GTT63TJQ37BA5CNFSM43E4PDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGEDHABY.gif

garysecor commented 3 years ago

Here is survey link – it takes me to login page see attached – before was taking me to survey ( when I was not logged into Salesforce)

https://c.na109.visual.force.com/apex/takesurvey?id=a1P3f000001ETczEAG&cId=none&caId=none https://c.na109.visual.force.com/apex/takesurvey?id=a1P3f000001ETczEAG&cId=none&caId=none

Granted SF Labs access if you want to take a look

Thanks

Gary

Gary Secor

Vice President CIO

Cloudtroupe

Direct 678-478-6776

@.> @.

http://www.cloudtroupe.com www.cloudtroupe.com

From: jrattanpal @.*** Sent: Monday, April 19, 2021 10:22 AM To: SalesforceLabs/survey-force Cc: garysecor; Author Subject: Re: [SalesforceLabs/survey-force] survey force was working - now not working for external survey (#113)

What is the error that you are getting?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/113#issuecomment-822505479 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AECPNHKP3KI2JTNN6NNCJ6TTJQ37BANCNFSM43E4PDYQ . https://github.com/notifications/beacon/AECPNHMI3EXBV5NX42GTT63TJQ37BA5CNFSM43E4PDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGEDHABY.gif

jrattanpal commented 3 years ago

https://c.na109.visual.force.com/apex/takesurvey?id=a1P3f000001ETczEAG&cId=none&caId=none is an INTERNAL page (visual.force.com).

There should be a different URL for your site that you setup (Setup->Sites). You should be using that URL.

You can get that URL by Going to Survey detail page and using that "Share" component on the first tab of that details page.

garysecor commented 3 years ago

https://gumf.secure.force.com/TakeSurvey?id=a1P3f000001ETczEAG&cId=none&caId=none https://gumf.secure.force.com/TakeSurvey?id=a1P3f000001ETczEAG&cId=none&caId=none

ok – now getting authorization required message

Gary Secor

Vice President CIO

Cloudtroupe

Direct 678-478-6776

@.> @.

http://www.cloudtroupe.com www.cloudtroupe.com

From: jrattanpal @.*** Sent: Monday, April 19, 2021 1:27 PM To: SalesforceLabs/survey-force Cc: garysecor; Author Subject: Re: [SalesforceLabs/survey-force] survey force was working - now not working for external survey (#113)

https://c.na109.visual.force.com/apex/takesurvey?id=a1P3f000001ETczEAG https://c.na109.visual.force.com/apex/takesurvey?id=a1P3f000001ETczEAG&cId=none&caId=none &cId=none&caId=none is an INTERNAL page (visual.force.com).

There should be a different URL for your site that you setup (Setup->Sites). You should be using that URL.

You can get that URL by Going to Survey detail page and using that "Share" component on the first tab of that details page.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/113#issuecomment-822643432 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AECPNHMBCG2EUITQBWZUIDDTJRRW7ANCNFSM43E4PDYQ . https://github.com/notifications/beacon/AECPNHMNXPCEIHHNRCJEYNDTJRRW7A5CNFSM43E4PDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGEEIV2A.gif

jrattanpal commented 3 years ago

Right, now you need to capture Apex debug logs so I can check what maybe wrong. As far as I know, it's a FLS/CRUD issue somewhere. I don't know why it suddenly stopped but someone may have changed something.

In general, go through all the steps in https://github.com/SalesforceLabs/survey-forcehttps://github.com/SalesforceLabs/survey-force to make sure all is configured properly

dschach commented 3 years ago

The most common reason to get the authorization required message on a public survey is that you haven't assigned the guest user permission set to the site user. Instructions are on the readme in this repository. And, as @jrattanpal said, be sure to create that sharing rule. (We can't package it with this code, so users have to create it manually when they first install Survey Force.

garysecor commented 3 years ago

Thanks – I went back over the settings – we are good now – thanks sincerely for your attention and emails.

Gary

Gary Secor

Vice President CIO

Cloudtroupe

Direct 678-478-6776

@.> @.

http://www.cloudtroupe.com www.cloudtroupe.com

From: David Schach @.*** Sent: Wednesday, April 21, 2021 12:52 PM To: SalesforceLabs/survey-force Cc: garysecor; Author Subject: Re: [SalesforceLabs/survey-force] survey force was working - now not working for external survey (#113)

The most common reason to get the authorization required message on a public survey is that you haven't assigned the guest user permission set to the site user. Instructions are on the readme in this repository.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/113#issuecomment-824210330 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AECPNHPRFGSRHY2HV7XLLGDTJ37D3ANCNFSM43E4PDYQ .Image removed by sender.

jrattanpal commented 3 years ago

Glad to hear this issue has been resolved. I will close this. Feel free to log a new issue if you encounter any other error