How do you copy UimData values to IA fields for the Intelligent Capture / Captiva distributed web client (i.e, to custom values for later usage)?
UimData values cannot be copied to IA values using value assignments. One method is to use CodeBehind scripting to do this.
- In the captureflow process in designer, go to the CFD Scripts tab.
- Add a C# script and put this in the Finish section, save the changes, then deploy.
If the indexing is done at a Distributed Capture running at document level, the below code can be used to populate the IA custom value "BU_RID".
Example:
IUimDataAccessor docData = node.GetStepNode("DistributedWebClient").ReadUimData("UimData");
IUimFieldDataAccessor DTC = docData.FindFieldDataContext("BU_RID");
node.GetStepNode("CustomValues").WriteString("BU_RID",DTC.ValueAsString);
If the indexing is done when creation of a batch, you could add a multi step to run at document level and use the above code at multi.