I am creating a flow using visual workflow. The flow will be fired from a button. The button will be on the Activities Related List on Account Records. It will replace the stock Log a Call button.
The flow is interview style and creates a new Task (call) when finished.
However I kept getting an odd error when creating the new Task record. I am getting a failure and an error that the Owner Id and the Account Id are Null.
I am passing these values through the URL parameters.
To troubleshoot I pared this down to the simplest test. I have a variable named varAccountId passed through the URL. I have verified that is being passed with a valid value. I have a second variable varAccount.
I perform a quick lookup and set varAccount to be an sObject of Account where Id = varAccountId. Then I created a "result" screen that displays the values of varAccountId and varAccount.Id.
Oddly the result screen displays both values, they are both correct, but I still get an error that varAccountId is NULL !
Even stranger is that no amount of Googling seems to turn up anyone with a similar problem. Normally any error is Salesforce can be searched for and many posts etc. found, but here nothing.
To test further I tried this in my personal developers org, where it works! So this is really perplexing. I am a full System Admin in both orgs, and checking permissions shows nothing unusual. So I am at a total loss.