KenMc

Changing a Sender's SenderStatus

0 votes
I have inherited a small (and incomplete) application from a former developer at my company that uses v11.5 of the .Net SDK to manage senders for our account. Recently we used the app to delete a sender via a call to AccountService.DeleteSender(). This call didn’t remove the sender; it changed the sender’s Status from SenderStatus.ACTIVE to SenderStatus.LOCKED. Seemed reasonable at the time, and it had the desired effect. Now we need to re-activate this sender, and I must update our application to perform this operation. However, I can’t find any method in the SDK (or an example in the forums) to update a sender’s Status back to ACTIVE. Do I need to simply re-invite the user via a call to AccountService.SendInvite? If not, please advise as to the proper method for getting this user back to an active state.

Approved Answer

Reply to: Changing a Sender's SenderStatus

1 votes
Hi KenMC, There's a function UpdateSender() in .NET SDK (guide here) to update sender information, but it seems there's no attribute of senderStatus to set in SenderInfo object. So this function won't be used to unlock a sender from my knowledge. Instead, here's a sample code of "UnlockSender" function using REST method that I created for you. Kindly check the attachment. Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Attachments

Reply to: Changing a Sender's SenderStatus

0 votes
Yes, I saw that UpdateSender method but realized right away it wasn't going to do the job. I've implemented the function you attached, and the sender is now unlocked. Thank you very much!

Reply to: Changing a Sender's SenderStatus

0 votes
Glad to help! :)

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off