You need to sign in to do that
Don't have an account?
alexsummers
DescribeSObject User and Contract
Good Day!
I'm using DescribSObject to get the URL detail of Sforce Objects
however I've noticed that whenever I do this with Contract and User I get an error:
"Object not set to an instance of an object"
I learned that these objects does not have Url detail
can somebody suggest a workaround as to where can I redirect from a weblink popup
to display the changes in these objects?
I usually use the urldetail in a javascript: window.opener.location
Any suggestion is very much welcome
Thanks in advance
Message Edited by alexsummers on 04-25-2005 07:50 PM
Hi alexsummers,
For the user and contract objects you construct the url as you would for the contact or account. IE just add the id to the base url of https://na1.salesforce.com (assuming na1 is the server).
Since this is not exposed in the describe call, this url structure could change. The best way to determine these urls is to click on an item in your browser and check the address in the address bar.
Thanks Dave,
Do you know how can I program this?
I'm trying now to not use the describeObject -urlDetail and just use javascript
I've tried window.opener.parent.location.reload() but it does not work
What works though is window.opener.parent.location={URL} -- this is where i use the urlDetail
Hi alexsummers,
Hmm... You can use the desribe object from javascript.
You can also use the Detail Link merge field when constructing your web link.