I thought I had already posted this, but I guess not (if so, please feel free to direct me to my original post and delete/merge this one). I have a before insert trigger on leads, it calls an apex class that calls a managed packaged callout class (for verifying email addresses). The callout is working and I can verify that in the managed package ui based on the bogus or solid email addresses I enter.
I used an @future static method in the apex class, with other static getters that (I would think) would return various static variable values, but that's not happening.
I am not getting any compile errors, and again the verification runs as it should. But a couple custom lead fields (i.e. isValidated) are not being updated by the static methods in the class that I am calling from the trigger.
I included debug lines to verify, and even though the debugs show that the values are correct (when the managed package lines are included) the debug logs show null for the lines verifying a variable's value in my trigger.
Is this simply a managed package/permissions issue? the methods and properties within the needed package are listed as global so I thought I could successfully call those, but apparently not.
Any assistance would be appreciated. I have some experience with java, and limited experience with Salesforce development. As I said it's working, but fields are not updating so I can't fire other automation based on the results. I'm sure there's a simple explanation for what's happening. If somebody can point me in the right direction, that'd be helpful (I can post my code if needed).