function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marcelo JuniorMarcelo Junior 

Questions about Database!

Hello! 

I'm new at development and Force.com and i have some questions to do.

 

I have an object called Person:

 

Can i upload a XML with information about a Person  and parse it for a new data?

Ex: XML -> Parse -> Popule a New Person Object -> Save it 

 

Another question is:

Can i have an Object List as "Field" inside my Custom Object?

As i see when i was doing the tutorial, i can do a Picklist field. But its not what i want because i need to define the values, and i want to populate it with some datas from XML. An String List for example.

 

Tks for all help!

And sorry about my english! Im studying a lot to write and speak better =)

 

 

 

 

 

Ispita_NavatarIspita_Navatar

With respect to your query about loading data from an XML one can do it by writing a program in Dot net using the partner or enterprise wsdl, but from within the salesforce org one cannot load data from XML.Also you can upload data from a csv. using the data upload wizard of salesforce or using APEX  data loader.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

Marcelo JuniorMarcelo Junior

Ispitar, very thanks for the help. 

I talked with my co-workers here and we decided to upload a CSV file. But now i have another question.

 

Can i get a row of my CSV File, and create(or populate) a new Object?

 

For example:

 

My CSV File have the following datas:

firstname,lastname,age,document.

 

And i have a Custom Object People with the same fields:

firstname,lastname,age,document.


Can i do something like this?

 

 

Person__c p = new Person__p();
p.firstName = csv firstname data

 

 

 

Thanks for all the help.