So the issue here is that there is a bug in the API that has not been fixed until 2018.
I don't recall seeing an issue with this. Have you added the Egcf_RefreshFileListing flag when you call CreateTree?
The code is identical to the example, except that this is added at the end in an attempt to update the card value.
' We need a delay
For c As Integer = 1 To 10
Dim enumVarObj2 As IEdmEnumeratorVariable8 = aFile.GetEnumeratorVariable
And the SetReviewer function looks like this:
Public Sub SetReviewer(ByVal vars As IEdmEnumeratorVariable8, ByVal num As String)
Dim Value As String = "Yes"
vars.SetVar("Description", "", Value)
Basically, in this example I am adding the card value for the Description (this is a test), but it will not do it. As I understand it, the system believes the file is not checked out yet, even though I verify this ahead of time. in my For c loop prior to clicking through the loop. I thought perhaps some kind of refresh might do it, but no go.
You are now mentioning this: Egcf_RefreshFileListing flag when you call CreateTree? Is there some specific syntax I can follow for this?
The example has
batchGetter.CreateTree(Me.Handle.ToInt32(), EdmGetCmdFlags.Egcf_Lock + EdmGetCmdFlags.Egcf_RefreshFileListing)
I saw no difference there. Perhaps something else is missing.
If you're interested, I have attached the project. Any part file in a vault should work. I am changing the card value field "Description." Of course, the code can be changed to any field.
Batch_CheckIn.zip 471.4 KB