how we can search for all columns? when we don't k...
# suitescript
a
how we can search for all columns? when we don't know the columns
b
The basic answer is you dont
Consider using N/record instead to get the data of 1 record
d
If you use RECORD module, you can see all fields with getFields() method.. but if using SEARCH module, you only can get all with INTERNAL ID and do a search to get each one.. BUT.. this is very very very slow and destroy governance 😞
a
many thanks @battk @Diego Modesto I think the whole process is wrong I want to put a button or check box in a campaign and when user click on that it will create phone call for each user in that campaign and then show phone calls is a sublist in that campaign what's the best way to do that? any solution?
my approach now is to add that checkbox to the campaign and a field for campaign id to the phone call record by suitebuilder and then when user tick that box it will create phone call for all the users which 3 searchs are involved there and then in the campaign beforeload search for phonecalss with that id and create a sublist and show them which I think is a owful solution and very slow
establishing a parent child relationship allows the child record to automatically showup on the parent record as a sublist
a
@battk that's correct but can we establish a parent child relation between campaign and phone call record(not a custom record?)
b
give it a try, should take less than 5 minutes to setup