Skip to content
How to compare a un...
 
Notifications
Clear all

How to compare a unique identifier across two arrays

3 Posts
3 Users
0 Reactions
6 Views
beepbodeep
(@beepbodeep)
Posts: 1
New Member
Topic starter
 

Hello! I'm fairly new to callin.io but I'm really enjoying it so far.

I've been encountering a challenge with a specific scenario.

I have a setup that retrieves all my blog posts from a Wix blog app using an HTTP module and then transfers them to Airtable. My goal is to:

  1. Compare the postId values and update the corresponding Airtable records if the editedDate differs between the two modules.
  2. Create a new record if a postId does not already exist.

Thank you!

 
Posted : 07/07/2024 7:55 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

Welcome to the callin.io community!

You haven’t shown us how your scenario looks like, and also providing the Output bundle exports (instead of screenshots), will help us reproduce that in the scenario editor, and help us take screenshots of the solution.

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the trigger/iterator/aggregator modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!
request private consultation

Join the callin.io Fans Discord server to chat with other makers!

 
Posted : 08/07/2024 12:56 am
Mr.Make
(@mr-make)
Posts: 25
Eminent Member
 

Hi, I've configured a similar setup using Google Sheets to retrieve the data needed for the scenario.

  1. Search for the post ID in your Airtable, which you're already doing.
  2. Implement a filter that creates a record if the post ID is not found in the Airtable base.
  3. Update the record if a record is found and the edited date in your callin.io API call is more recent than the last modified time in the Airtable base.

    image

 
Posted : 08/07/2024 4:02 pm
Share: