How to create a basic share receiver?

75 views
Skip to first unread message

Andrew Ahlfield

unread,
Aug 10, 2023, 3:22:52 PM8/10/23
to Automate
Hello Automate Community,

Are there any examples out there I can look at on how to create a simple share receiver flow? My endgame is to create a "Save to [Specific] Folder" action that will show up in the Android share menu.
I feel like I'm close, but I don't enough about what I'm doing to know how to parse the URI into a filepath/filename that the Move block can understand. Currently getting this error: com.llamalab.safs.NoSuchFileException: /storage/emulated/0/content:/mediaexternalimagesmedia1000005742: lstat failed: ENOENT (No such file or directory)

Thank you!
Andrew Ahlfield

Screenshot_20230810-141926.pngScreenshot_20230810-141936.pngScreenshot_20230810-141945.png

Henrik "The Developer" Lindqvist

unread,
Aug 11, 2023, 3:56:49 AM8/11/23
to Automate
The File move block only works with files, not (content) URI:s, try using the Content copy block instead.

Andrew Ahlfield

unread,
Aug 16, 2023, 3:17:23 PM8/16/23
to Automate
Thanks Henrik! The content copy block works great! I connected the end of the flow to the second block to listen again for a new share!

Next stage of this quest is to upload to a sharepoint site. Is that something Automate can handle, or am I better off with something like the OneSync app?

Andrew Ahlfield

unread,
Aug 17, 2023, 1:54:24 PM8/17/23
to Automate
Gonna answer my own question here after looking at the oauth "Google API authentication working example" flow.
Is building a flow that can connect to SharePoint possible? Probably, as far as I can tell. It would definitely be very involved. I think there were 50 blocks in the above example that I mentioned. Probably 20-40+ hours, depending on the programming experience of the person implementing. Grabbing a OneSync Ultimate license is looking like a really effective way to go. MetaCtrl's dev time to make sync to SharePoint is a no-brainer for what I need. 
Reply all
Reply to author
Forward
0 new messages