Upload an image by replacing an image,but get wrong Image Object ID

Hi everyone,

Here’s the part of my scenario

I want to replace Page Elements 4【Google-Slides:Get a Page】

And I choose PageElements.Object ID【Google-Slides:Upload an image to a Presentation】

But the error message said:
The operation failed with an error. [400] Invalid requests[0].replaceImage: The object (SLIDES_API493663527_1) is of wrong type.

The module【Google-Slides:Upload an image to a Presentation】get the wrong Object ID
How can I fix it?

Hi @oscarcpbl

  1. How many objects do you have in the Page Elements array?
  2. You must ensure you’re getting the correct Object ID. To get the correct ID, you can use the first/map array functions.
    https://www.make.com/en/help/functions/array-functions
    image

    If you know the image title, you can set up such a function.
    image
    Please find the function attached; you can copy/paste it to your scenario.
    {{first(map(13.pageElements; “objectId”; “title”; “t14.png”))}}