# Variable value not being passed to custom action

**URL:** https://www.finalbuilder.com/forums/t/variable-value-not-being-passed-to-custom-action/865
**Category:** Discussion
**Created:** [June 4, 2008, 12:06pm UTC](https://www.finalbuilder.com/forums/t/variable-value-not-being-passed-to-custom-action/865 "2008-06-04T12:06:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 4, 2008, 12:06pm UTC](https://www.finalbuilder.com/forums/t/variable-value-not-being-passed-to-custom-action/865/1 "2008-06-04T12:06:31Z")

</div>

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&nbsp;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.

&nbsp;

thanks

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 4, 2008, 1:37am UTC](https://www.finalbuilder.com/forums/t/variable-value-not-being-passed-to-custom-action/865/2 "2008-06-04T01:37:26Z")

</div>

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
