• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Developer Community SDK Questions
A

Angshuman Nandi

started a topic over 2 years ago

Issue in pooling - custom connector!

Hello Friends


I am trying to build a polling mechanism for a trigger in a custom connector. The code shown in documentation is failing. Please see below:


poll: lambda do |connection, input, last_created_since|

page_size = 100

created_since = (last_created_since || input['created_since'] || input['since'])

 

customers = get("https://api.stripe.com/v1/customers") . 

params(created_since: created_since.iso8601,

order: 'asc',

limit: 100)['customers'] || []



Now the entire set of params is throwing error - saying created_since, order & limit are not valid.


Any suggestions on this? 


Thanks in anticipation,

Angshu

Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count