cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Databricks data in Salesforce via zero copy

ManojkMohan
Honored Contributor II

I have uploaded clickstream data as shown below

ManojkMohan_0-1763394266370.png

Do i have to mandatorily share via Delta sharing for values to be exposed in Salesforce ?

ManojkMohan_1-1763394302680.png

At the Salesforce end i have confirmed that i have a working connector where i am able to see samples data , but unable to see SFDB data

 

ManojkMohan_3-1763394433335.png

unbale to see SFDB

ManojkMohan_4-1763394570789.png

Looking for help to nail down the root cause

I am using the databricks free community edition

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Yes @ManojkMohan , it does. Based on your setup you have created sfdb catalog with default schema and 2 tables: e_clothing and salesforce_activation_data.

Now you need to grant the permission I've mentioned at post above to your service principal.

 

szymon_dybczak_0-1763402981760.png

 

View solution in original post

5 REPLIES 5

bianca_unifeye
New Contributor III

@hasnat_unifeye  I think you setup recently the Salesforce connector. Can you please have a look at the issue described above? Thanks. 

szymon_dybczak
Esteemed Contributor III

Hi @ManojkMohan ,

You need to assign a correct set of grants to your service principal on Unity Catalog. 

To query a table in Unity Catalog you need at minimum following privileges

- USE CATALOG - on the parent catalog of the table

- USE SCHEMA - on the parent schema of the table

- SELECT on the table itself

So, could you assign those permission to the Service Principal you're using to connect to databricks in Salesforce?

ManojkMohan
Honored Contributor II

@szymon_dybczak But does the data bricks community free edition have unity catalog capabilities ?

szymon_dybczak
Esteemed Contributor III

Yes @ManojkMohan , it does. Based on your setup you have created sfdb catalog with default schema and 2 tables: e_clothing and salesforce_activation_data.

Now you need to grant the permission I've mentioned at post above to your service principal.

 

szymon_dybczak_0-1763402981760.png

 

szymon_dybczak
Esteemed Contributor III

So, for instance I have catalog called project in databricks free edition. If I would like to assign proper permission for my Service Principal (so that it can see the tables wihtin catalog and can query them) first I need to set 2 preequisite permission (red number 3 on screen below):

szymon_dybczak_1-1763403463914.png

Here you can also specify SELECT permission in READ section - then all schemas and tables will be available for your service principal through inheritance.
If you want to grant your service principal access to selected table then pick that table and grant select permission on the table level.