You need to sign in to do that
Don't have an account?
CJDEVCONPRO
Add New Contact via VB.NET 2003
I have a VB.NET app that I want to be able to open the New Contact page in SF.
I am trying this:
Process.Start("https://na1.salesforce.com/secur/frontdoor.jsp?sid=" & loginRes.sessionId & "&retURL=/003/e%26con10%3d" & TextBox1.Text)
But it is not working. I get redirected to a page that says the URL is no longer valid.
Any ideaS?
I am trying this:
Process.Start("https://na1.salesforce.com/secur/frontdoor.jsp?sid=" & loginRes.sessionId & "&retURL=/003/e%26con10%3d" & TextBox1.Text)
But it is not working. I get redirected to a page that says the URL is no longer valid.
Any ideaS?
How should my link look to add a contact from VB.NET 2003?
In the retURL part, add the prefix ..%2F, so instead of
Process.Start("https://na1.salesforce.com/secur/frontdoor.jsp?sid=" & loginRes.sessionId & "&retURL=/003/e%26con10%3d" & TextBox1.Text)
you now have this:
Process.Start("https://na1.salesforce.com/secur/frontdoor.jsp?sid=" & loginRes.sessionId & "&retURL=..%2F003%2Fe%26con10%3d" & TextBox1.Text)
(I also replaced the "/" character by the "%2F" encoded version...)
This is because when the redirection occurs, it keeps the "secur" virtual folder in the path, which screws up the redirection...