i link: a!documentDownloadLink(document: fv!item.appianDocId ),
used the above two lines to download a document but it does not download , it open a tab with a message error : { "error": "APNX-1-0000-000", "message": "Invalid Content ID", "title": "An Error Has Occurred"}
Discussion posts and replies are publicly visible
Is that value in appianDocId a valid document id?
Yes it seems like it's saving the appianDocId in the database correctly
You just shared this minimal code snippet. I cannot help you much without more context.
Did you check the actual values in that data you seem to iterate on?