Блог

BI export: Wrike connection problems

Комментариев: 7

  • 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 💡Узнайте о самых популярных функциях Wrike и советах по его использованию

    Is this helpful? 0
    Действия с комментариями Постоянная ссылка
  • 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
    Действия с комментариями Постоянная ссылка
  • 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? 4
    Действия с комментариями Постоянная ссылка
  • 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
    Действия с комментариями Постоянная ссылка
  • 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
    Действия с комментариями Постоянная ссылка
  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Daniel Rankin

    Seth Neds Thanks for the M query/Power query tip here, the second level of authorization by URL I'm still wrapping my mind around.  Elegant solution that should go into the Wrike documentation.

    Is this helpful? 0
    Действия с комментариями Постоянная ссылка
  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Jacob Wright

    Seth Neds I was able to get all of the queries to pull data from the links. Thank you!

     

    Question- How do I get these queries to refresh? The queries aren't refreshing every hour/day. 

    Is this helpful? 0
    Действия с комментариями Постоянная ссылка

Войдите в службу, чтобы оставить комментарий.

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.