Hi Team,
Recently, I had used the "getdocumentsfromfolder" appian function. For few days it worked well but suddenly it started throwing error saying that - The function getdocumentsfromfolder is unavailable.
Could you please help me out what could be the possible reason for this error. I have attached the reference screenshot below.
Discussion posts and replies are publicly visible
You can use the document() function and get the "documentChildren" property.
Hi Harshit,
Thanks! for the above suggestion.
Just a small correction - the document() function is not having the "documentChildren" property but the same I found it in "folder()" function and it worked for me to retrieve the documents from the specified folder.
Oh yes. Sorry, that was a typo. I meant the folder() only. You surely can't get documentChildren from a document.
Yes, absolutely correct. Thanks! for the help
Harshit - I am still getting the same error for the folder function as well. Just to let you know that I am using this function on Interface to populate the documents from the folder. In preview or edit mode it works well but on portal it throws me the below error.
Just want to make sure I am not doing anything wrong...
It is not supported by portals. You will need to create an API, with this function in the API, and then use an integration in your portal to call it.
docs.appian.com/.../fnc_scripting_folder.html