I have this code witch seems to run okay, but after it completes the part the macro creates seems to enter a state of limbo where it doesn't enter the workflow as expected. Here is the code:
Normally when I check these parts in it enters a state "initiated" and an automatic transition carries the part to "Released". But when the code runs the info in the EPDM fly out just turns grey and and the transition I expected to happen never does...? The part is available for check out, and if I check it out, then back in, the workflow takes over and the automatic transition happens. The goal is to check the part in automatically so the user does not have to - what am I missing? These are new parts being added to the vault if that makes a difference.
Here is a screenshot of the fly out menu after the code executes:
Then after a check out and back in manually (what I want/expect to happen through the use of the check in code):