Dynamic Mapping of IG Likes into Notion

Dear Community,

I am currently designing an integration that allows for writing and planning IG posts from Notion. All is well in that regards.

My question is about a possible new functionality: how to accommodate a dynamic number of mappings so that the integration tracks engagement metrics.

That is, at this point (see attached scenario) I map according to descending timestamp. But, alas, in order to make it work I had to hardcode variables holding data for each metric, so I had to also limit the number of posts I can track.

In sum: I couldn´t figure out how to dynamically track metrics and map to Notion.

Any pointers would be greatly appreacited.

Best! And thanks!

Hi Miguel,
I will try to propose something even though I don’t know exactly the details of the scenario and how the data is structured - so excuse me if this is off. One thing that came to mind is: could you use the Repeater module, passing the number of variables to it so that the subsequent steps run for X number of variables?

2 Likes

Yes, thanks Simo. It´s a SOLUTION following these steps.

  1. The REPEATER module gets an initial value of 1 and repeats for the length of the array(s)
  2. Each iteration of the REPEATER updates an internal variable, aptly named “i”
  3. I use the this new “i” variable to map over the arrays, each NOTION cycle getting its correct indexed value.

So, overall, this a way to DYNAMICALLY map IG like counts to Notion Page_IDs, which seems to pave the way to effectively track engagement metrics.

(Also important to this scenario are the filters and sorting, anyone can reply if interested to know more about the system as a whole).

—> SEE ATTACHED PICS FOR DETAILS
Screenshot 2024-06-19 at 5.23.31 PM
Screenshot 2024-06-19 at 5.30.43 PM
Screenshot 2024-06-19 at 5.30.33 PM

Cheers!

Mg

2 Likes