jitsi-meet icon indicating copy to clipboard operation
jitsi-meet copied to clipboard

Salesforce Integration

Open kutayinclr opened this issue 2 years ago • 3 comments

Hello,

I was checking the source code to customize SDK while doing that I noticed there is salesforce API integration in the source code.

When I checked the documentation I couldn't find any resource describing how to integrate type info.

First I noticed there is salesforceUrl in config.js after that I started tailing the source code and saw that it uses jwt token to authenticate as Bearer. So get access_token from salesforce APIs and give it try but got an error which says,

`

URL No Longer Exists
You have attempted to reach a URL that no longer exists on salesforce.com.

You may have reached this page after clicking on a direct link into the application. This direct link might be:
• A bookmark to a particular page, such as a report or view
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link
• A link to a particular page in your email templates

If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark.

If you reached this page through any of the other direct links listed above, please notify your administrator to update the link.

If you reached this page through a link on our site, please report the broken link directly to our Support Team and we will fix it promptly. Please indicate the page you were on when you clicked the link as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using salesforce.com!

After that started checking the endpoints to understand the problem and see that jitsiSDK is using the following as described in config file and also in the source code:

// listing the most recent records - salesforceUrl/records/recents // searching records - salesforceUrl/records?text=${text} // retrieving record details - salesforceUrl/records/${id}?type=${type} // and linking the meeting - salesforceUrl/sessions/${sessionId}/records/${id}

When I check the endpoints in the Salesforce API doc I noticed that endpoints are completely different.

So my question is, is there any other app in salesforce that I need to activate in the panel to maybe activate those endpoints?

When will this feature will publicly available?

Thanks.

kutayinclr avatar Jul 05 '22 12:07 kutayinclr

Ping @mihhu

saghul avatar Jul 05 '22 12:07 saghul

Hello @kutayinclr, I'm glad this code section picked your interest. It really depends on what you're seeking - for our use case, we link Salesforce records to meeting sessions.

There was some interest in open sourcing the backend side, but it's not a priority at the moment, and we can't say when it will be. So unfortunately for now this will involve building your in-house backend. These endpoints (that aren't properly documented and for that I'm at fault, sorry) are actually from our adapter service over the Salesforce API. I will link the corresponding API calls next to each other and improve the docs sometime soon:

// listing the most recent records - salesforceUrl/records/recents https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_recent_items.htm

// searching records - salesforceUrl/records?text=${text} We use the POST method for https://developer.salesforce.com/docs/atlas.en-us.238.0.api_rest.meta/api_rest/resources_search_parameterized.htm

// retrieving record details - salesforceUrl/records/${id}?type=${type} https://developer.salesforce.com/docs/atlas.en-us.238.0.api_rest.meta/api_rest/resources_sobject_basic_info_get.htm

// and linking the meeting - salesforceUrl/sessions/${sessionId}/records/${id} https://developer.salesforce.com/docs/atlas.en-us.238.0.api_rest.meta/api_rest/resources_composite_graph_introduction.htm

I hope this throws a little light on this matter. Please let me know if you have further questions.

mihhu avatar Jul 07 '22 06:07 mihhu

Hi @mihhu, appreciate your time and effort to explain this. Got it, so the URL specified in the config(salesforceUrl) is actually an internal adapter link that is handling actually connection to salesforce API, thanks!

This was an eye-opener!

kutayinclr avatar Jul 07 '22 12:07 kutayinclr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 19 '23 01:09 github-actions[bot]