You need to sign in to do that
Don't have an account?
Polayya reddy
how to create tasks,attachments from Account object.
Hi
Could you please check the below points and provide your answers
how to Create a new Account and create a three tasks for it.
how to Create a new Account and attach three attachments for it
how to Write a SOQL to fetch all Accounts including records in Recyclebin.
Thanks
Could you please check the below points and provide your answers
how to Create a new Account and create a three tasks for it.
how to Create a new Account and attach three attachments for it
how to Write a SOQL to fetch all Accounts including records in Recyclebin.
Thanks
Task is a standard object you can see for every record of standard and custom objects.
Please follow below steps.
Goto--> Accounts-->open any record-->
scrolldown your page
you can see "Open Activities" and "Notes and Attachments."
under Open Activities--->click new task.
Please see below screenshot
enter the details for the task you want to assign.
In the same way, you can create attachments under Notes and Attachments.
Attach file
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
All Answers
3.how to Write a SOQL to fetch all Accounts including records in Recyclebin.
From apex
You cannot do it directly within the Query Editor of developer console but there's a workaround for you to test your query in Developer Console. The workaround is to use the "Execute Anonymous Window".
1. Open "Enter Apex Code" window by selecting "Debug" -> "Open Execute Anonymous Window" menu
2. Enter your query there and output the result to the log. Check the "Open Log" checkbox.
List<Account> fruits = [SELECT ID FROM Account ALL ROWS];
System.debug(JSON.serialize(fruits);
3. Click "Execute" to run your code and check the log file for your result.
1.how to Create a new Account and create a three tasks for it.
can you elaborate this (did you mean when ever a record is created three tasks should be created?trigger sort of thing).
Please let us know.
Thanks and Regards
Sandhya
Thanks for your reply. we need relate task to Account object.Just like Account and contacts.I not found any task object.
Thanks
Polayya reddy
Task is a standard object you can see for every record of standard and custom objects.
Please follow below steps.
Goto--> Accounts-->open any record-->
scrolldown your page
you can see "Open Activities" and "Notes and Attachments."
under Open Activities--->click new task.
Please see below screenshot
enter the details for the task you want to assign.
In the same way, you can create attachments under Notes and Attachments.
Attach file
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya