What can we help you with?

e.g. Gantt chart, Creating tasks, Sharing folders

Blog

BI export: Wrike connection problems

5 comments

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Hugh

    Hi Marc!

    I've raised a Support Ticket for you, you should receive an email soon and our team will be able to help you with this.

    If you have any other questions let me know! ๐Ÿ˜Š

    Hugh Community Team at Wrike ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Yasmeen Wilde

    Hi Hugh,ย 

    I have the same question as Marc. I got to the name of the table and the storage.www.wrike.com url (see below). How do I get to the columns and data behind the url?ย 

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Seth Neds

    Yasmeen Wildeย I have the the Wrike data connected to Power BI but unfortunately my method doesn't allow for automatic refreshing of the data. Hopefully this can point you in the right direction though.

    I started by getting the location of each of the Wrike CSV documents:

    let
    Source = Json.Document(Web.Contents("https://www.wrike.com/api/v4/data_export", [Headers=[Authorization="bearer token"]])),
    data = Source[data],
    data1 = data{0},
    resources = data1[resources],
    #"Converted to Table" = Table.FromList(resources, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"name", "url"}, {"Column1.name", "Column1.url"}),
    #"Renamed Columns" = Table.RenameColumns(#"Expanded Column1",{{"Column1.url", "url"}}),
    #"Added Custom" = Table.AddColumn(#"Renamed Columns", "Table from Link", each Csv.Document(Web.Contents([url], [Headers=[Authorization="bearer token"]]),[Delimiter=",", Columns=8, Encoding=1252, QuoteStyle=QuoteStyle.Csv]))
    in
    #"Added Custom"

    Then I created a new query for each CSV link (Table from link):

    let
    Source = #"Wrike Data",
    #"Table from Link" = Source{1}[Table from Link],
    #"Promoted Headers" = Table.PromoteHeaders(#"Table from Link", [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"audit_log_id", Int64.Type}, {"operator_user_id", Int64.Type}, {"audit_log_object_type", type text}, {"audit_log_object_id", Int64.Type}, {"audit_log_object_title", type text}, {"audit_log_operation_type", type text}, {"audit_log_operation_time", type datetime}, {"audit_log_operation_origin_location_country", type text}})
    in
    #"Changed Type"

    Is this helpful? 1
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Yasmeen Wilde

    Seth Nedsย it works, thank you so much for sharing your code.ย 

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Seth Neds

    Yasmeen Wildeย You're welcome! I'll glad you got it figured out.

    Is this helpful? 0
    Comment actions Permalink

Please sign in to leave a comment.

Folllowing List for Post: BI export: Wrike connection problems
[this list is visible for admins and agents only]

Community

Welcome ๐Ÿ––

Hi there! ๐Ÿ™‚ Want to become a black belt Wrike Ninja? Here's how to earn a Wrike badge

Welcome ๐Ÿ–– Have you checked out this week's Release Notes yet?

Hey! ๐Ÿ‘‹ Curious about something? Visit How To to search and ask the Community for answers.

Welcome! ๐Ÿ‘‹ Figured out a good tip or trick? Share it in Best Practices.

Want to connect your existing software to Wrike? Learn and ask how in the API section.