You need to sign in to do that
Don't have an account?
Amit S
Task URL Not working
Hi All,
I am trying populate the URL with Values for What ID and Who ID. but it is not populating on the custom VF Page.
below is the URL I have constructed.
https://c.cs6.visual.force.com/apex/HCPTasksVFPage?accid=001N000000XZuVZIA1&ent=Task&ownerid=005N00000023EKyIAM&RecordType=012N00000000b70&retURL=%2F001N000000XZuVZIA1&whatId=001N000000XZuVZIA1&whoId=001N000000XZuVZIA1
This page load but does not populate the Account(Related To) and Name on the New Task Page.
If anyone has come across such an issue, please let me know the solution for this. Do I need to populate any other fields for the Related To & Name on the screen?
I am trying populate the URL with Values for What ID and Who ID. but it is not populating on the custom VF Page.
below is the URL I have constructed.
https://c.cs6.visual.force.com/apex/HCPTasksVFPage?accid=001N000000XZuVZIA1&ent=Task&ownerid=005N00000023EKyIAM&RecordType=012N00000000b70&retURL=%2F001N000000XZuVZIA1&whatId=001N000000XZuVZIA1&whoId=001N000000XZuVZIA1
This page load but does not populate the Account(Related To) and Name on the New Task Page.
If anyone has come across such an issue, please let me know the solution for this. Do I need to populate any other fields for the Related To & Name on the screen?
NOTE: When adding code, please use the "Add a code sample" button (icon <>) to increase readability and make it easier to reference.
And here is the Edit Page referenced:
Hope this helps. I am redirecting from New Task button to following page
Please let me know me this code is helpful for you to understand the problem statement
Thanks,
Amit
I have tried the above options in the controller, but it is not able to fetch the correct values for me to assign
NOTE: This code has not been tested and may contain typographical or logical errors
Invalid id: null
An unexpected error has occurred. Your development organization has been notified.
But for t.AccountId I get error, "not allowed".
On other two fields, the value from ApexPages is null.
Please let me know if I am missing something else while initializing the task?