I need to build in functionality for the web to detect whether the account is inactive or not and to display a message if it is inactive. Has anyone built this in to their website and which methods did you use?
Hi Jason,
We don't have anything link this but , what I am thinking you will need to do is after they have logged in is to make a call to GetConstituentInfoEx and check the inactive flag in the ConstiuentHeader data table that is returned.
Jon
Perfect, thanks Jon
Hi Jon -
I am working on this task too. Am I looking in the right location when checking the inactive flag in the ConstituentHeader? See below. If not, can you please explain what I should be looking for? Thank you!
<ConstituentHeader diffgr:id="ConstituentHeader1" msdata:rowOrder="0">
Hey Matthew,
That looks correct. You would need to check the value of the <inactive /> node.
Hey John,
Thank you for your response.
Where would I check the value of the inactive node?
- Matt
Hi Matt,
The xml reponsethat you provided has an inactive node. That would be the place to check.
I see multiple inactive nodes. I'm unsure what I should be checking.
Matt, in the ConstituentHeader node there is an <inactive/> node I belieeve that is what you are looking for.
Hi Jon,
I was using an active account to test, which caused confusion on my end. My apologies. I have found an inactive account to test. Here is what the dataset returned for the ConstituentHeader:
HI Matt,
Great so you see it working. Now all you have to do is have code to check that value, this all depneds on where you are using the data.
Our login page is built using .ASPX. Data is running on MySql Server 2008. I need to figure out what action should be in place for the inactive web call.