Flushing the list of recent share actions for cloud api

Where is the list of recently shared links stored that are retrieved with cloud.getSharedArtifacts() and can it be refreshed somehow?

Are they stored in the XD file, itself…in the application somewhere? When using this I am getting some odd results. The documentation mentions that it may still list items that are deleted from the cloud and older items, that are still live, may not get listed.

I guess I’m really just looking for a way to get an accurate list of the prototypes and specs that have been shared from an XD file and are still accessible.

Hi @nateUX, could you please provide us more details on the “odd results” you are getting? It will help us replicate the results on our end. Thank you.

Sure. I’ll try to to add example steps over a few replies but here is one to get started.

Prerequisite:
Create a plugin that will log all Shared artifacts (name, url, accessLevel) to the console.

Example 1:

  • In XD, create a new file
  • Save it to your cloud documents, named “LinkTest”
  • Click Share then Share for review
  • Give it a Title, “Proto1”. Let all other features remain default.
  • Click Create Link
  • Dismiss Share popup
    • Run plugin (works as expected this time)
  • Open the Share popup again and select Share for Review again.
  • Update Proto1 to Require Password and provide a password.
  • Dismiss the popup (you are not allowed to Update or create a New Link, or at least, I’m not)
  • Run the plugin again.
  • Result: The prototype accessLevel shows passwordProtected but opening the url shows that it is not password protected.
  • Expected result: accessLevel = linkable or prototype is, indeed, password protected.

Example 2 (starts at end of Example 1):

  • Create copy of “LinkTest” by clicking Save As… and saving to your local machine. I used the default name of “Copy of LinkTest”
  • Run plugin
  • Results: shows link from other file (still passwordProtected). Expected result: there are no links.

Example 3 (starts at end of Example 2):

  • Go to Share popup and select Manage Links…
  • Permanently Delete “Proto1”
  • Run Plugin
  • Result: Link is still present
  • Expected result: No link present as it has been deleted
    Note: This behavior is documented in the api documentation but goes back to my original question of if there is a way to get an accurate list of shared artifacts.
  • Copy url and paste in browser
  • Result: Presented with a password entry screen.
  • Expected result: Some kind of page that lets me know this file doesn’t exist…since I deleted it.

@stevekwak, have to had a chance to replicate this?