ADSGroup and ADSAccountInADSGroup

Hi everyone,

I have created a custom processes in Designer, which executes a script  (ScriptComponent - ScriptExec)
This script first, create a group in the table ADSGroup using IUnitOfWork with commit and later I have to assign the employees to this group.
The problem is that when I invoke the function to assign to the employee, the UID_ADSGroup is blank and therefore the INSERT in the Table ADSAccountInADSGroup
fails.
is there some way to wait that I have the UID_Group?

Thanks in advance.