Post

2 followers Follow
1
Avatar

Notifications being posted even with silent: true set for Podio::Item.update from the Rubygem

This call to the Podio API results in notifications, even with silent: true. 

    Podio::Item.update @org_id, {fields: { Settings.organizations_fields.aging_field_id => value }}, silent: true

Any ideas on what's wrong? I've also tried it like this.

    Podio::Item.update @org_id, fields: { Settings.organizations_fields.aging_field_id => value }, silent: true

 

I appreciate any help!

Mason Wiley

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Mason,

There's a bit of syntax mess-up in your example. It should look something like:

Podio::Item.update item_id, {:fields => {"external_id" => "sample_value"}}, {:silent => true}

Hope it helps.

Cheers,

Brian

Brian Stengaard 0 votes
0
Avatar

I believe that's doing the same thing. When the last argument of a function in Ruby is a hash, you can omit the curly braces.

Mason Wiley 0 votes