I am testing out the CRM Link Module with Salesforce in FSB (a salesforce sandbox) however I have been unable to get the API token to successfully save within the CRM Setup page in FreePBX.
When I click on Get Salesforce Token I am redirected to login(dot)salesforce(dot)com and from there I change the URL to test(dot)salesforce(dot)com and login with my sandbox credentials.
This then brings up the authorization request for the sangomacrm connected app I created in the sandbox.
I authorize the app which then redirects me back to the sangomacrm config page URL with &code=(random string here which I believe is the token).
The page however does not fully load and only displays a single text box:
None of the other fields appear until I remove the &code=(random string here) from the URL and refresh the page. Upon refreshing the “Get Salesforce Token” button re-appears and no token has been stored. I checked the asterisk database and found where the settings were stored within the
kvstore_FreePBX_modules_Sangomacrm table however I see no reference to a “Token” key entered in the val column for “salesforcesettings”.
Can the Customer Relationship Module be used with a Salesforce sandbox? If so do I need to manually add the token provided after “code=” in the URL string in the database table and if so where in the json array should I place the token and what key should I use?