Question

Read a subprocess parameter through script task

Hi,

 

I am trying to read the parameters from a subprocess through script task.

Subprocess:


Output values:


My code right now:



Right now, FcmOccupationParam is empty. Does anybody know what am I doing wrong or how I can check what I read in the items ICompositeObject?

Thank you!

Like 0

Like

1 comments

Hello,

You’re asking for the wrong key. From the subprocess “Output record collection” the items contain fields with the exact parameter codes you see in the log: EmploymentDetail, EmploymentStatus, EmployerBuss, EmployerName, Occupation.

There is no OccupationParam, so TryGetValue<string>("OccupationParam", …) always fails.

Use the real field name - Occupation to get the value.

Show all comments