mavsp8
(mavs)
March 2, 2023, 7:50pm
1
I am trying to use AWS Textract activity and I was able to fetch table data from the Document.
Only trouble I am having is I am unable to fetch key value data from document using
pageDetail.FormData
How can I fetch key value pairs from document?
Any help is appreciated
Yoichi
(Yoichi)
March 2, 2023, 11:42pm
2
Hi,
According to the official document, perhaps it will be as the following. (Sorry but i haven’t actually run it)
Can you try this?
Regards,
1 Like
mavsp8
(mavs)
March 3, 2023, 2:56pm
3
Hi @Yoichi ,
Thank you its working.
Can you please tell me how can i grab specific name and its value from currentItem ?
for example: I want to fetch
Name: Roll No
Value: 1001
Yoichi
(Yoichi)
March 3, 2023, 3:24pm
4
Hi,
Can you try either of the following?
ForEach and If
LINQ
resultFormField = varPageDetails.FormFields.Items.Where(Function(f) f.Name="Roll No").SingleOrDefault
note: resultFormField is FormField type.
Regards,
mavsp8
(mavs)
March 3, 2023, 3:46pm
5
Thank you so much, First one worked.
one last thing if i want to fetch lets say 5 specific fields out of 10. Then I will be using multiple “5” if conditions and “5” assign activities right?
Yoichi
(Yoichi)
March 4, 2023, 1:12pm
6
HI,
Yes, it’s one of solutions. However, it might be better to use Dictionary and Array as the following.
dict = varPageDetails.FormFields.Items.ToDictionary(Function(f) f.Name,Function(f) f)
dict is Dictionary<string,FormField>
type
Hope this helps you.
Regards,
system
(system)
Closed
March 7, 2023, 1:13pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.