Googly Sync - CRON

7.10.11

Ahh, that explains it. This is only available on 7.11 + as it is a new feature.

For anyone else coming to this thread because they’re interested in syncing their Google Calendar…

Please download 7.11 and try it out. The old patch I made for 7.10 is quite buggy and incomplete.
We also need input on the current functionality, especially from diverse timezones and locales.

I’m subscribed to this thread and will get email notifications on replies here. Thanks!

“For Section 2, give it a descriptive name. Leave ‘JavaScript origins’ blank.
Under ‘Authorized redirect URIs’, you need to fill in the full URI to the ‘saveGoogleApiKey’ Entry
Point. Note that this does not need to be a public URL. It only needs to be accessible to the user who is
enabling the calendar sync. I’d absolutely recommend having an https enabled site for production on a
publicly accessible site.”

I must have really messed this step up because when I authorize CRM to my calendar the redirect goes to a 404 error page not found.

What URL does it redirect to that gives you a 404?

Also, please confirm that you are running 7.11, and not 7.10.

Yes I successfully upgraded to 7.11

When authorizing as admin those steps appeared to work as per the direction, it is only when authorizing as a user I get the 404 error. I’m sure I misunderstood the directions.

https://crm.larmahil.com/index.php?entryPoint=saveGoogleApiKey&code=4/4QAba76DKVSXM3ryCidrOwgsaxCS8DetXlNvTIayMhabOhyYGLYDKAZd36wFhuYaVbthgDsZY0w4N_-2hHbCE8k&scope=https://www.googleapis.com/auth/calendar

I see the problem. The url you have in your Google key is https://crm.larmahil.com/index.php?entryPoint=saveGoogleApiKey but your SuiteCRM install is in the subdirectory /SuiteCRM. So you should use https://crm.larmahil.com/SuiteCRM/index.php?entryPoint=saveGoogleApiKey as the URL.

1 Like

Hey Benjamin,

I’ve tried this cause everything was setup correctly but my calendar is still empty,

my SUITECRM install is in a sub dir /SuiteCRM

So I’ve tried to re create the API with this link “https://intranet.mydomain.com/SuiteCRM/index.php?entryPoint=saveGoogleApiKey

But now when I try to authorize the API I get a blank page with this URL :

https://intranet.mydomain.com/index.php?entryPoint=saveGoogleApiKey&getnew

I’ve tried this to add the subfolder :

https://intranet.mydomain.com/SuiteCRM/index.php?entryPoint=saveGoogleApiKey&getnew

And now I get this :

Multiple Choices
The document name you requested (/SuiteCRM/index.php) could not be found on this server. However, we found documents with names similar to the one you requested.
Available documents:

/suitecrm.log/index.php?entryPoint=saveGoogleApiKey&getnew (common basename)

Its just the log. So I’ve go back and re-create the API with th original link : https://intranet.mydomain.com/index.php?entryPoint=saveGoogleApiKey

The strange thing is that this link got a 301 error on the intranet.mydomain.com/index.php?entryPoint=saveGoogleApiKey

“GET /index.php?entryPoint=saveGoogleApiKey HTTP/1.1” 301 - "

When I go myself to this URL it re direct me to /index.php?module=Users&action=EditView&record=1

So I think that the problem !

Does we have to validate the domain ? See the attached screen

Im sorry but this simply does not work. I have uninstalled SuiteCRM several times and followed the directions exactly learning from each mistake as I went along. Even with a fresh clean error free step by step replica my calendar and crm do not share data.

I hired someone from freelancer.com and they made a solution that did work however I do not trust it because it grants a lot of permissions in google to someone I really do no know.

If anyone has successfully used the method outlined in this thread please make a clear tutorial, because as you can see by the comments above there are a lot of us who just can’t get this to work.

@holdusback

I’m not sure how you’re getting a message like that. If the URL doesn’t work it should just be a 404 error, not that ‘multiple choice’ thing. Is something else that’s installed on your server interfering? What web server/OS are you using?
You do not need to validate the domain. That’s for a different mechanism.

@Larmahil

I’ll see if I can get someone else who has it working to chime in. They won’t be posting much since people only come here when they’re having a problem.

I’ve got this message when I’ve tried to add /SuiteCRM/ to the link -> https://intranet.mydomain.com/SuiteCRM/index.php?entryPoint=saveGoogleApiKey

Cause I saw ur message that SuiteCRM is installed in a subfolder, wich is my case !

But that made a blank page when i try to authorize via google. So i’ve get back to my old link -> https://intranet.mydomain.com/index.php?entryPoint=saveGoogleApiKey

I’ve got my main website… Its a simple 1&1 linux server. Really dont understand why its not working, cause everything in the doc was working, everything seems OK, but my calendar is still empty ahah

@holdusback
Please share your public URL with me. I want to check something out.
If you want, you can join me at https://gitter.im/SuiteCRM_AC/community

1 Like

With some help from Benjamin, its now working.

Thanks you !