I have added and shared a CSV onto Portal.
item = gis.content.add(file_properties, file) item_share = item.share(everyone=True, org=True, groups=None, allow_members_to_edit=False)
How do I retrieve the share-url?
Thanks,
Greg
Hi Greg,
You can obtain the item id from your item variable (item.id) and append it to a URL with /data at the end. Here is an example URL:
https://<portal.domain.com>/<webadaptor>/sharing/rest/content/items/<itemid>/data
I am trying to use this format to generate share links for some of my webmaps. But when I try this URL format it just returns JSON. How do I make it return the webmap as a public link?
Jake,
That worked.
Thanks.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.