on 04-30-2018 1:36 PM
Dear Experts,
I need to get a document from the Library to attach it to the "PDI BADI to provide attachment to email" enhancement, but I can't find a way to obtain the library file content. I use the QueryByElements of the Document object to retrieve the file from the name, but I can only get the UUID of the Document object. Is there any way to recover its content?
Thanks in advance,
Regards,
Janneth.
Hello Janneth,
You are almost there. In the resultset.GetFirst(), go inside the node "VersionFileVariant" and then again access the association "VersionFileVariantContent", where "BinaryObject" field will have the file content in Base64 format. If you have multiple versions of the file then the same can be checked in "VersionFileVariant" node and accordingly the content for the required version can be accessed. If you havent maintained any version then you can just use GetFirst() for the "versionFileVariant" node.
Hope it helps.
Thanks & Regards,
Meghna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Meghna,
Thank you very much for the response :), I did tests with the indications you gave me and I was able to recover the contents of the file, I had tried to do it using the association with the version but it was empty, again thank you I had not found information about it, I was about to give up and look for another solution,
Regards,
Janneth Torres
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.