You need to sign in to do that
Don't have an account?
Nihar Sharma
URL hack is not working for Standard Quote Object Using custom button (Visualforce page)
Hi Experts,
Here i have one issue, i am not able to create new Quote record from custom commandButton which i declared in Visualforce page..
i do not want to predefined Opportunity from Lookup field..
What i want is when i click on Create New Quote Button (custom button from VF Page) then only allow me to create new Quote and at that i am going to select Opportunity manually from the lookup field.
Hope this is clear !!
Let me show you the URL which i am using in action of commandButton
Now, What should i do to replace OpportunityID which is passed twice in above URL ?
Please Help !!
Thanks
Here i have one issue, i am not able to create new Quote record from custom commandButton which i declared in Visualforce page..
i do not want to predefined Opportunity from Lookup field..
What i want is when i click on Create New Quote Button (custom button from VF Page) then only allow me to create new Quote and at that i am going to select Opportunity manually from the lookup field.
Hope this is clear !!
Let me show you the URL which i am using in action of commandButton
<apex:commandButton value="Create New Quote" action="/0Q0/e?retURL=%2F0063600000D5oyO&oppid=0063600000D5oyO"/>
Now, What should i do to replace OpportunityID which is passed twice in above URL ?
Please Help !!
Thanks
You will have to provide the Id of the Opportunity since Opportunity and Quote is a Master-detail relationship.
You cannot make the opportunity to be blank.
All Answers
tried it and code seems like
but Got the following error
"Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors."
Please try the below in your code.
<apex:commandButton value="Create New Quote" action="/0Q0/e?retURL=%2F0063600000D5oyO&oppid="/>
See below image i tried your updated code but getting the following output:
Error like :
You will have to provide the Id of the Opportunity since Opportunity and Quote is a Master-detail relationship.
You cannot make the opportunity to be blank.
if this relationship is LookUp then we can leave it blank..right ?
Cheers !!