Coder Social home page Coder Social logo

Implement append_by_field about pyairtable HOT 4 CLOSED

gtalarico avatar gtalarico commented on May 23, 2024
Implement append_by_field

from pyairtable.

Comments (4)

gtalarico avatar gtalarico commented on May 23, 2024

You are welcome @samgdf

I think the append use case is too specific to be part of what is currently a light-weight Rest API wrapper.
I would rather keep it somewhat mapped to the functionalities provided by API.
Otherwise, what would be next? Append? Prepend? InsertAtIndex? Search and replace? Regex Search?
all string operations? Hard to draw a line.
Does that make sense?

I think a functionality like prepend is better handled by the user.
You can always make a simple function to accomplish the task:

  1. Get all records.
  2. Make the modifications to the data (ie append)
  3. Use Mirror or Update calls to update the data

from pyairtable.

samgdf avatar samgdf commented on May 23, 2024

Fair enough. Would you happen to know how to use your wrapper to mark a checkmark in airtable? I've tried update_by_field : true (shorthanding, but with validly formatted code), but it does not work.

Thanks again!

from pyairtable.

gtalarico avatar gtalarico commented on May 23, 2024

Should work if you just pass a python boolean. Let me know if doesn't work

from pyairtable.

samgdf avatar samgdf commented on May 23, 2024

(data[i]['fields']['checkedAT']) = True does not work, for the field checkedAT, which is a check box.

EDIT: Nevermind, wasn't passing it to airtable.

from pyairtable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.