Create an Action on 'node_insert' or 'node_presave'
yeah,

for some reason, my variable needed to be initiated first.

$myvar = 0;
$myvar = $node-&gt;nid;


that's it. works now.
Problem/solution applies for Drupal 6 or 7.