|
Klassieke bestandstypen zijn vanaf januari 2021 niet meer beschikbaar voor gebruik. U kunt uw klassieke bestanden omzetten of een PDF downloaden. Meer informatie

Chain to validate Connection IDs?

Beantwoord
0

Opmerkingen

4 opmerkingen

  • Andrew McKenzie

    Perhaps you could use List connections to return all valid connections from the target sheets in question, or, if that doesn't work, try the Get connection details endpoint?

    I'm not sure about an approach for checking on permissions, however.

    0
  • Jeff Hickey

    Hi Erik Tremblay,

    Andrew's suggestion of getting the list of connections and checking if a particular Connection ID is found in the list would be a good way to make sure the Connection ID still exists. A Connection ID won't change. However, if the connection is deleted and then reestablished, the new connection will have a new unique Connection ID.

    You could verify part of the permissions for a Connected Sheet. In order for the Chain to refresh a connection, the Username associated to the Workiva Connector must be at least an Editor or higher for the particular Connected Sheet. You can use the Prototype Platform Spreadsheet API endpoint Retrieve Permissions for a Sheet in a Spreadsheet to get a list of permissions for the given Sheet. Then verify that the user has adequate permissions based on the results. This API endpoint requires that the user has explicit permissions for the Connected Sheet and not just inherited permissions to the Sheet. Additionally, at this time, this is a prototype API endpoint and is subject to change or removal without warning.

    Assuming that the Connected Sheet is connected to a Wdata Query, the user will also need access to the query to run it. There is not an API endpoint at this time to verify permissions of this side of the connection.

    0
  • Erik Tremblay

    Thanks for the suggestions Andrew and Jeff, really appreciate it.   

    The List Connections approach is something we've considered, however with the connections spanning multiple spreadsheets, it ultimately became more overhead than addressing the occasional failure points.  With the List Connections approach, we equally need to identify all the spreadsheet IDs and parse the JSON files for each spreadsheet to produce the list for comparison. 

    That said, if you have any examples of successful chains pulling this off, I'd be very interested to see how you've configured them.  

    0
  • Andrew McKenzie

    Our situation may be simpler than yours Erik Tremblay, but we simply have a chain that lists connections for the relevant spreadsheets and refreshes all of them. It doesn't discriminate among connections and hence refreshes whichever are used in each spreadsheet. And regarding permissions, we have a CloudRunner connection set up for a generic integration user we've created in Wdesk that we've granted sufficient permissions on each spreadsheet to.

     

     

    0

U moet u aanmelden om een opmerking te plaatsen.