Question

Ruby API

  • 28 March 2022
  • 0 replies
  • 36 views

Hey everyone,

I’ve been working on passing dashboard filters into a ruby create_render_task API call.  I’ve tried many different iterations but the filter never passes to the dashboard.  Here is the current code for downloading dashboards as a PDF
 

begin

dashboard_to_render = 267


pdf = sdk.create_dashboard_render_task(dashboard_to_render, "pdf", {} {:query => {:width => 1920, :height => 1080}})


id = pdf[:id]

until sdk.render_task(id)[:status] == 'success' do
end

results = sdk.render_task_results(id)


f = File.open(File.join(Dir.pwd,dir3, test), 'wb') { |file| file.write(results) }
end 

Has anyone had luck getting dashboard filters to work with Ruby SDK?

 

Thanks


This topic has been closed for comments