Why does my code fail when switching from Airtable to Airtable_OAuth app in action props?

This topic was automatically generated from Slack. You can find the original thread here.

Hi, I am trying to move to the new Airtable OAuth app and I encountered an issue, apologies if this was asked before and I didn’t find it. Here’s the code I have in the action. I marked the props that fail. They are still using the airtable app syntax. I tried to change it OAuth (eg rename airtable to airtable_oauth) but nothing works. I assume it’s either that the new app doesn’t support such live references or something in my syntax is wrong?

Thanks!

module.exports = defineComponent({
  props: {
    airtable: {
      type: "app",
      app: "airtable_oauth",
    },
    baseId: { // !!! this one fails
      type: "$.airtable.baseId",
      appProp: "airtable",
    },
    tableId: { // !!! this one fails
      type: "$.airtable.tableId",
      baseIdProp: "baseId",
    },
      Callֹֹ_Menu_ID: {
      type: "string",
      label: "Callֹֹ_Menu_ID",
    },
      ChatManager_Call_menu: {
      type: "string",
      label: "ChatManager_Call_menu",
    },
    ChatManagerֹID: { 
      type: "string",
      label: "ChatManagerֹID",
    }
  },
  
  async run({steps, $}) {
    //custom code here
  }

})

Hi, I think your question is a great case for Pipedream bot to help. I’ll pass your question to the Pipedream bot now. Please feel free to ask it any question

Hi, I am trying to move to the new Airtable OAuth app and I encountered an issue, apologies if this was asked before and I didn’t find it. Here’s the code I have in the action. I marked the props that fail. They are still using the airtable app syntax. I tried to change it OAuth (eg rename airtable to airtable_oauth) but nothing works. I assume it’s either that the new app doesn’t support such live references or something in my syntax is wrong?

Thanks!

module.exports = defineComponent({
  props: {
    airtable: {
      type: "app",
      app: "airtable_oauth",
    },
    baseId: { // !!! this one fails
      type: "$.airtable.baseId",
      appProp: "airtable",
    },
    tableId: { // !!! this one fails
      type: "$.airtable.tableId",
      baseIdProp: "baseId",
    },
      Callֹֹ_Menu_ID: {
      type: "string",
      label: "Callֹֹ_Menu_ID",
    },
      ChatManager_Call_menu: {
      type: "string",
      label: "ChatManager_Call_menu",
    },
    ChatManagerֹID: { 
      type: "string",
      label: "ChatManagerֹID",
    }
  },
  
  async run({steps, $}) {
    //custom code here
  }

})

thanks for that! I will wait for Pi to reply here

sorry, should I expect an answer here from Pi? Or maybe I don’t see it because you asked and not me? So far I only see your question and my thanks message, but no response from Pi yet. Thanks!

I think Pi might got into a problem here

Let me try to ask it again