Forum Discussion

RyanParr's avatar
RyanParr
Qrew Assistant Captain
6 years ago

Can Webhook Ignore Fields With no Value?

Hello!

I have a child table with 3 text fields (Audio, Video, and Audio & Video). It has a parent table with 3 text fields (Audio, Video, and Audio & Video).

If a user enters a value into any of the text fields on the child record, I'd like it to update it's matching fields on the parent.  However if one of those fields has no value entered into it, i don't want it to override the existing data on the parent... it should skip the field.

Can this be done via a webhook? In reality, my table has a ton of fields on it... i realize i could create automatons for each one, but that would take us over the automation threshold. 

Thanks in advance!

------------------------------
Ringoparr
------------------------------
  • Here's an idea.
    Suppose that there is a field on the parent for Project Date.
    Look that up down to the child.
    Now make a field called [Date to be written on project] (I realize you will have shorter names)

    IF(not IsNull([Child Date Entry]),[Child Date Entry],[Project Date])

    and then write that value to the Project Date field in he webhook.  So while there is not logic to avoid clobbering the Project Date with a block, if the date entry on the child record was blank, you will re-writing the same [Project Date] original value over again, which means no change.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • RyanParr's avatar
      RyanParr
      Qrew Assistant Captain
      Easy peasy! I'll expose all the fields on the child and work with that logic. Thanks, Mark, you da admin!

      ------------------------------
      Ryan Parr
      ------------------------------
    • RyanParr's avatar
      RyanParr
      Qrew Assistant Captain
      Mark,

      I ran into a formula error when it came to a multi-select text field. Do you have any tips on how to address that field type?

      "Formula error -- Bad or missing arguments in function call

      The types of the arguments or the number of arguments supplied do not meet the requirements of the function IsNull.

      The function is defined to be IsNull (.

      You may need to do one of the following to fix the problem:
      • Choose the right number and type of arguments.
      • Use a type conversion function to convert the arguments you are using to the correct type.
      • Choose a different function.



      ------------------------------
      Ryan Parr
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        np
        IF(Trim(ToText([my multi select field]))="", "This field is blank")

        ie convert to text and then test vs "" which is empty quotes.

        Note that you cannot check IsNull([my text field]) as its documented that the IsNull function does not work for text fields, so you need to test against empty quotes.

        The Trim is just to trim off any extra leading or trailing white space -  ie spaces or other non visible characters.

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------