Perforce Sync Action: Unable to use Env Variable for Changelist number

I have a problem…

When I use an Env var in the P4 sync operation (as shown in the shot below), it is not respected.

If I enter the changelist # into the action by hand (e.g. set it to 1234) that works OK.

My desired flow is:

1) Prompt user for changelist #
2) Set an env var: %P4ChangeList%
to this entered changelist #
3) Then sync to this changelist (I have several sync operations, so this way one prompt feeds all syncs)


But it isn’t working…

Note, my var is named: %P4ChangeList% (the last several digits are not viewable in the short edit, but they are

Thanks !!!

Hi Sam

As a work around until this is fixed, in the BeforeAction script event add this (VBScript) :

Action.ChangeNum = FBVariables.P4ChangeList

HTH

Hi Sam

I just had a look at this, the variable is getting expanded just fine. Can you show the log output from this action? Also, this is a depricated action, you should consider migrating this action to the newer perforce actions.