• Warren 'dev' Schembri
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I'm trying to find an example of how you go about getting the translated values that are stored in Salesforce. In particular, the translations for Layout Sections.

 

I assume this is possible but I am a little lost as to how you could do this and what I need is some kind of working example.

 

From what I can see with documentation, it would be something like this:

CustomObjectTranslation.LayoutTranslation[].sections

 

Any help would be appreciated.

 

Thanks in advance.

Warren

I have created a CSV file and using Test.Load data I am able to get the corresponding record of the object.But my question is When I will require to insert a record of a object which is related to the earlier inserted object, how will I use Test.load data...Exmp

 

I have inserted Account object related data using Test.Load data.But in the same test method I need to insert Contact object related record.How will I do it?

 

I have tried in the following way....

List<sObject> ls = Test.loadData(Account.sObjectType, 'testAccounts');
  Account a1 = (Account)ls[0];
 List<sObject> con = Test.loadData(Contact.sObjectType, 'TestContacts');
   Contact newContact=(Contact)con[0];
   newContact.accountid=a1.id;
 update newContact; 

 

  Any way around??????????????