favicon is a constant containing the url. For testing purposes it is hardcoded. T
Example: https://www.google.com/s2/favicons?domain=google.com&sz=64
A few notes here:
In troubleshooting, the error stopped when I created a Files field within the database. Which gives me the impression that addFileFromURL cannot add files to the avatars collection. The database I’m working with does not need a files field so I’ve since deleted it and
I also noticed that, when the function did run and upload images to the Files field, the success message returns the ID for the entity that triggers the script. So it’s not possible to get the fileid/secret in the script and then attach the file to the avatar field
Well that’s the bug I think we have here. Are you able to successfully make an update on your end? If so, would you mind sharing an example of a script that works?
I must have missed this in the docs. Could you share a link?