You need to sign in to do that
Don't have an account?
Jin Kaur 7
Auto populate Opportunity on Task and Event from Contact
I am trying to create a New Task and New Event button which should auto fill the Related To Opportunity Field to where the Contact (role) is associated. The contact will only ever have 1 opportunity associated and will have a Contact Role.
I found this
/003/e?Title=Call&who_id=(!Contact.ID)&retURL=(!Contact.Id)&what_id=(!Opportunity.Id)
However, I am getting a create new contact page.
I want to eliminate the user having to look up an Opportunity - reason being is because the users make a lot of calls via New Voice Media and I want the Activity on the Opportunity instead of the Contact.
Any help asap would be appreciated!
Thanks
I found this
/003/e?Title=Call&who_id=(!Contact.ID)&retURL=(!Contact.Id)&what_id=(!Opportunity.Id)
However, I am getting a create new contact page.
I want to eliminate the user having to look up an Opportunity - reason being is because the users make a lot of calls via New Voice Media and I want the Activity on the Opportunity instead of the Contact.
Any help asap would be appreciated!
Thanks
/00T/e
To create a Event append the URL with :
/00U/e
I guess your URL will still not work, can you do let me know from where you are executing the new creation request, which object?
You will have to write a query in your javacript to get that one opportunity and make the URL accordingly
Something like this:
Reference : http://www.sfdcpoint.com/salesforce/soql-query-in-javascript-example/