How to get @pdg_input and @pdg_output in Python?
1866
1
0
raincole
Member
692 posts
Joined: Aug. 2019
Offline
Jan. 19, 2022 9:14 p.m.
In Hscript expressions we could use `@pdg_input` and `@pdg_output` to get a work item's input and output. But how to do this Python? I've tried everything that I can think of:
* attrib("pdg_input")
* inputResultData
* expectedInputResultData
* resultData
* data.allDataMap
None of these works! How could it be so hard to just get the most basic attributes of work items?
Edited by raincole - Jan. 19, 2022 21:17:58
Attachments:
Screenshot 2022-01-20 101415.png (186.1 KB)
MakoPolo
Member
27 posts
Joined: Jan. 2018
Offline
Feb. 1, 2022 9:38 p.m.
for me I used
getOutputFile = str ( work_item . inputResultData [ 0 ])
to get the @pdg_output and
getInputFile = str ( work_item . expectedInputResultData [ 0 ])
to get the @pdg_input