Is there a way to customize those fields? For example the length or the color of a specific field. What is size limit for the CSV file and how many records does the download supports? Thank you for your post it has been very educational! I am using a lightning:tree-grid and would like to apply this logic to include an export to csv link.
Unfortunately, I am fairly new to Salesforce and am not sure how to break out the child row object s. Can you suggest what I might do to modify your solution for a tree-grid? Thank you for your time and assistance! Hey there, would it be possible for you to show how to do the same thing but export as an Excel file. Connect and share knowledge within a single location that is structured and easy to search. I have this function in my functions.
I am trying to download an csv file, it does download the csv file, but gives an notice on the header of the csv file. So if the if block is executed not the else block , the variable is never defined. Define it outside of the conditional first, so it always has at least some value:. Just check your code, error message is very straight forward in this case - "Undefined variable: description". It means you are returning undefined variable. Change code to:.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Returning function - Undefined notice error - downloading csv file Ask Question. Asked 5 years, 3 months ago. Add a comment. Active Oldest Votes. Improve this answer. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer?
Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Related 6. Hot Network Questions.
0コメント