What's wrong with my CONCATENATE()?

Hi all,

I want to get image URLs by using concatenate.  

Having read https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/Automatically-generate-images-URL/m-p/324249

I'm using this expression for column [image_url].

 

CONCATENATE(โ€œhttps://www.appsheet.com/template/gettablefileurl?appName=",โ€œappname-idโ€,"&tableName=",โ€œdiaryโ€,"&fileName=",[image])

 

But, it fails to get [image] value...

Screen Shot 2022-03-01 at 20.23.07.png

Screen Shot 2022-03-01 at 20.36.03.png

Can anyone know what I'm doing wrong?

Thanks!

 

 

โ€ƒ

 

 

 

Solved Solved
0 6 287
1 ACCEPTED SOLUTION

Thank you. In a real column did you try saving the new record. When you first save there will not be the image URL. When you open that saved record again and resave it, does it create the URL?

View solution in original post

6 REPLIES 6

Could you try the expression with a virtual column? 

Also for real column you can try the following test approach. Once the record is saved ( when probably image URL will not be there) first time, please open the record in app again and save back.  You will most probably see  the image URL column populated.

Hi Subrutt 

Thank you so much for your help. I tried with a virtual column and yes, it's working! But unfortunately the same expression in real column doesn't.

Screen Shot 2022-03-02 at 19.59.07.png

 

 

 

But I need this URL in the real column since I want to access this data from external services.

I tried your suggestion for real column but it didn't work and still missing the file name...

Uk
Silver 1
Silver 1

sometimes it works . sometimes it doesn't. i don't know why

 

image_2022-03-02_011604.png

Uk
Silver 1
Silver 1

i've just tried and It works using bot automation. 

I'm using this formula in the table CONCATENATE("https://www.appsheet.com/template/gettablefileurl?appName=","xx-xx","&tableName=","xxx","&fileName=",ENCODEURL([xxx]))

Thanks Uk,
I've tried your suggestion and didn't work...
The same case as above, it works in a virtual column but not in a real column.

Thank you. In a real column did you try saving the new record. When you first save there will not be the image URL. When you open that saved record again and resave it, does it create the URL?

Top Labels in this Space