Forum Discussion
Connecting Harvest API with PowerBI
Thank you both for this you saved me. I want to share my code too if it is hopeful for anything--- which is nearly the same as the previous poster:
BaseURL = "https://api.harvestapp.com/v2/projects?access_token=#######.pt.XXXXXXXXXXXXXXXXXX&account_id=######",
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i44FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = List.Numbers(0,10,100),
#"Converted to Table" = Table.FromList(#"Changed Type", Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Changed Type1" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type1", "Custom", each Json.Document(Web.Contents((BaseURL&"limit=100"&[Column1]))))