I’m not sure if this is possible… I’m hoping it is. I have a situation where I use an API call to get an object. I then retrieve an email address from this object.
This part is fine, this works.
My issue is that sometimes my API call will return a different object structure if a customer uses an online form to submit a ticket vs sending an email to us. This causes my API to return a different string.
Is there a way to return a boolean of FALSE when my string says “object reference not set to an instance of an object”? No matter what I try, I cannot continue. I want to be able to use an IF condition to get my string for either API instance.
Hm, I may not need to do this anymore. It looks like there might be a way in the API to tell which channel it came from, either API or Email. I could just create a new variable at the beginning for this, then make my decisions based on this result.