Expand my Community achievements bar.

Unable to create single proof by mapping multiple hash files

Avatar

Level 2

Hello ,

 

I'm working on a usecase where I need to create a single proof by mapping multiple documents and hash files. I'm using create proof module and it is working when I map hashes and file names by using add item but it fails when I map them by getting hash files in a variable. While mapping I'm using the format of hash1,hash2. Let me know if anyone knows how to fix this.

 

Thanks in advance!!!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

8 Replies

Avatar

Community Advisor

Hi Rathina
I was looking into this and can't seem even to create proof with one file. 
What do you use as the hash? 

 

Avatar

Level 2

Hi Sven,

First you need to download the document that you want to create proof for and then upload it into Proof HQ using upload files module in workfront Proof connector. This module will result you with the hash you need to create proof.

Avatar

Community Advisor

Thank you so much 

I have it working: It seems you need to pass an array when you map the hashes and names, a comma-separated list causes an error. 

 

In my case i have 2 bundles, I upload to Proof, then use an aggregator, and just extract name and hash arrays

SveniX_0-1742384224024.png

 

Avatar

Level 2

This will work if I want to create proofs for each individual documents but in my case I will have more than one document and I need to create a single proof for all of them.

RathinaGopalan_0-1742385429507.png

 

Avatar

Community Advisor

see screenshots. I am creating a single proof out of 2 files

 

SveniX_1-1742385642374.png

SveniX_2-1742385685034.png

 

 

Avatar

Level 2

Hi Sven,

 

I have tried your approach but unfortunately it is creating 2 proofs.

RathinaGopalan_0-1742388369582.png

 

Since there are two documents and I'm iterating on documents, i'm getting 2 operations from aggregator also and proof is also being created twice. One proof per document.

Avatar

Community Advisor

You need to use customAPI module - the search will iterate over all results . Instead you do a search, then iterate over the results manually. 

Avatar

Community Advisor

here the sanitized JSON