Hi all,
I’ve got an issue with the Set Node.
I can’t type a value in expression mode who begin with the character ‘=’.
example : =IMAGE(“https://drive.google.com/uc?export=download&id=test ”;4;507;1024)
I’m on n8n 0.221.2 and it was working in my older instance (0.207.1)
Do you have a workaround for this ?
Information on your n8n setup
n8n version: 0.221.2
Database : sqlite
Running n8n via Docker
Older instance :
n8n version : 0.207.1
Database : sqlite
Running n8n via npm
Jon
March 30, 2023, 10:26am
2
Hey @antoinesnowleader ,
So a while ago a change was made so that any value starting with an =
toggles it to an expression, Oddly enough this has not come up as an issue before but I have worked out a way to work around it.
If you set the value to {{ '=IMAGE("https://drive.google.com/uc?export=download&id=test";4;507;1024)' }}
you will get what you are after.
Hi Jon,
Thanks for your answer.
In my case, i’ve got an invalid syntax error because i try to include an expression into this link :
How can i make it work ? Sorry, I’m not fluent with JS.
Jon
March 30, 2023, 12:11pm
4
if you are including an expression as well there is a bit more to it, Can you share the full expression and I can work it out.
Here it is :
=IMAGE(“https://drive.google.com/uc?export=download&id= {{$node[“Upload Image”].json[“id”]}}”;4;507;1024)
For more context :
First of all, i’m uploading an image to Google Drive
In this example, the id is 1c0G37CYRLlDvbLp1HGwQwTf-McwReXb0
After sharing it, I need to build an expression with the URL of the share to display it on a Google Sheet :
=IMAGE(“https://drive.google.com/uc?export=download&id=1c0G37CYRLlDvbLp1HGwQwTf-McwReXb0 ”;4;507;1024)
Jon
March 30, 2023, 12:48pm
6
Try this…
{{ '=IMAGE("https://drive.google.com/uc?export=download&id= ' + $node["Upload Image"].json["id"] + '";4;507;1024)' }}
1 Like
Work great !
Have a good day.
2 Likes
system
Closed
April 6, 2023, 1:03pm
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.