Community Alums
Not applicable

Let’s see how to import data automatically with scheduled imports,

First open your google sheet and go to File -> Share -> Publish to Web

 find_real_file.png

Now select sheet which contains data in my example it’s sheet1 and select comma separated values (.csv) in next checkbox.

find_real_file.png

Now copy link from below box, which looks like docs.google.com

Now open your instance Filter Navigator-> Administration -> Data sources

 find_real_file.png

Click new

Now select file retrieval method as HTTPS and then right click file path and go to config dictionary and change max length to 200, as Google sheet published URL is more than 100 characters,

find_real_file.png

 if you skip this step, you will face errors.

 find_real_file.png

Now Go back to data source form and complete fields as below

 find_real_file.png

Notes: Do not use http or https before server name, it should be only docs.google.com and remaining url (after /spreadsheet ), put in file path, Now click load test 20 records, If records are fetched successfully, then go to next step, else check what you missed in above steps,

 

Now Lets create transform map for this, scroll down and click on new in transform map

 find_real_file.png

 

Now create transform map as per your requirements

find_real_file.png

Here in my case, I am generating email ids for my users automatically, if you want any script to be written, please write it.

After this click auto-mapping assist, it will map some fields,

find_real_file.png

you can map remaining fields as per your requirements, Do not forgot to create coalesce field, else it will keep creating new records after the data is imported.

Now this part is completed Now visit scheduled imports

 find_real_file.png

& Click on new select data source and make schedule as per your requirements, in this case for testing purpose I am running it periodically after 5 minutes.

 find_real_file.png

Now save this record & done.

From now any changes made in the sheets will we auto inserted/updated in our tables after the specified time, please make sure if you add new column in Google sheet, please map it in transform map again, or if removed then remove from transform map also.

Now let’s check

Data in Google Sheet

 find_real_file.png

User’s table when data imported

 find_real_file.png

 

 

Regards,

Kaustubh Kulkarni

 

If you found this article useful, please mark this helpful.

 

 

Comments
_ChrisHelming
Tera Guru

There's a Google Sheets Spoke in IntegrationHub and you can use flow designer to create records on your import set table. Just another option 🙂

Version history
Last update:
‎04-08-2022 08:56 PM
Updated by:
Community Alums