Variable value not being passed to custom action

Hi,

I'm on my 3rd action in my custom .net action package and I'm not sure why but when I pass my variable %CurrentReleaseDate% to my .net addon I get exactly %CurrentReleaseDate% in the string on the c# side. I've done the same thing in other custom actions and it works fine so it's a little puzzling as to why now this stopped working.

The value is 06-04-08 as I can see it logged prior to the call. I've tried changing it to %COMPUTERNAME% and I get exactly %COMPUTERNAME% not the actual name.

In my c% code I do a sendMessage with the variable and it is still the variable name not the value so I know somewhere in FB it's not passing the value correclty.

Any thoughts?

I'm using FB6 pro which I downloaded 2 weeks ago and have a valid license.

 

thanks

Hi Matt,

Thanks for posting. I think I understand what your problem is here. The property on the action is set to a value of “%CurrentReleaseDate%”. In order to see that as an expanded value, you need to Expand the value of the property at runtime.

There are a lot of ways to do this, but if you’re using the new .NET API the best way is to just do ExpandProperty(“PropertyName”)

I’d be guessing that you’re probably using GetString(“PropertyName”) or GetProperty(“PropertyName”), in which case you’ll just be receiving the un-expanded value of the string property.

Hopefully this isn’t too much information. Let me know if I’ve mis-diagnosed your problem.

Regards,

Angus