Other attachment not working

I want if i request some documet then appsheet send automaticaly attachment file from gdrive.

Solved Solved
0 9 321
1 ACCEPTED SOLUTION

Can you try this instead:

IF(CONTAINS([Purpose], "Welher Investment Account Opening ( Mutual Funds)"), 
 LIST(
  "Files/Mutual Funds/AOF/Bank_Mandate.pdf",
  "Files/Mutual Funds/AOF/AOF FORM.pdf",
  "Files/Mutual Funds/AOF/cams kyc.pdf"
  ),
  LIST("")
)

(add the โ€œlistโ€ expression on the 3rd input, thatโ€™s my mistake I didnโ€™t think about this one as I was focusing on the pdf file path )

View solution in original post

9 REPLIES 9

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Lovkesh_Aggarwal

I suggest you have a look to the section โ€œHow AppSheet locates other attachment filesโ€

In other words, your expression might be instead:

IF(yourCondition, 
"YourFolderNameFromDefaultPath/Bank_Mandate.pdf",
"")

Thanks but if i want to attach folder or more files in code then what should i need to write? and is there any videos where i learn multi expression coding?

To my knowledge you canโ€™t attach folder, but you can attach various files.
(beware of example, you still need to write โ€œfileFolder/nameFile.pdfโ€

I think you can also use that expression (not tested yet):

IF(yourCondition, 
 LIST(
  "YourFolderNameFromDefaultPath/file1.pdf",
  "YourFolderNameFromDefaultPath/file2.pdf",
  "YourFolderNameFromDefaultPath/file3.pdf"
  ),
"")

Here is another helpful ressource:

I donโ€™t know about this specific request, but this is a good ressource:

not working and how appsheet is no coding platform? there is alot coding! there must be browse and attachment option and its common feature

Hi @Lovkesh_Aggarwal

Did you try removing the โ€œwelthertaskmanager-4122587/โ€ part on your expression ?
This is supposed to be the relative path from the default folder.
Because of it, there is no need to add it to the path.

Let us know if that works for you

this is the path from defaultu folder

I agree this is your default path
I probably mis-expressed myself, sorry for that.

What I meant is to change your expression,
From:

IF(CONTAINS([Purpose], "Welher Investment Account Opening ( Mutual Funds)"), 
 LIST(
  "Welthertaskmanager-4122587/Files/Mutual Funds/AOF/Bank_Mandate.pdf",
  "Welthertaskmanager-4122587/Files/Mutual Funds/AOF/AOF FORM.pdf",
  "Welthertaskmanager-4122587/Files/Mutual Funds/AOF/cams kyc.pdf"
  ),
"")

Into:

IF(CONTAINS([Purpose], "Welher Investment Account Opening ( Mutual Funds)"), 
 LIST(
  "Files/Mutual Funds/AOF/Bank_Mandate.pdf",
  "Files/Mutual Funds/AOF/AOF FORM.pdf",
  "Files/Mutual Funds/AOF/cams kyc.pdf"
  ),
"")

(please check the expression, Iโ€™m not sure I copied it correctly from your screenshot)

This way, you will have the relative path from your relative folder, which is implicit.

Now they giving condition error! why appsheet dont make it simple? make a coloum as per rules by default

Can you try this instead:

IF(CONTAINS([Purpose], "Welher Investment Account Opening ( Mutual Funds)"), 
 LIST(
  "Files/Mutual Funds/AOF/Bank_Mandate.pdf",
  "Files/Mutual Funds/AOF/AOF FORM.pdf",
  "Files/Mutual Funds/AOF/cams kyc.pdf"
  ),
  LIST("")
)

(add the โ€œlistโ€ expression on the 3rd input, thatโ€™s my mistake I didnโ€™t think about this one as I was focusing on the pdf file path )

Top Labels in this Space