Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Dynamic implementation
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Dynamic implementa tion
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 05:38 AM
I have custom object Opportunity_CRM__c. Once i upload the data into it i have to create another custom object test__c automatically with employee_id__c as one field.?(i.e dynamically i have to create the custom object) can any one give me the logic to implement this?
regards,
S.sivakumar
Re: Dynamic implementa tion
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 02:57 PM
you already asked that question here
do you need to create the test__c object or just fill it with the amount of Opportunity_CRM__c records I guess you just need to fill test__c, therefore a simply trigger
on the Opportunity_CRM__c (insert)
for (Opportunity_CRM__c myOpp :Trigger.new){
test__c myTest = new test__c();
test__c.Name = myOpp.Id;
//here put your fields you need into it
insert myTest;
}
something like that would populate your test__c with the needed values
if you mean creating the test__c object itself than you will need to think about limits (for each Opportunity_CRM__c record really 1 object? )
and not everything that can be counted counts.
@Albert Einstein
Re: Dynamic implementa tion
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 10:49 PM
hey thanks.
To use your code I have to manually create the custom object test__c before inserting records.
But i need to create test__c from apex class or triger and only once i have create, not for each Opportunity_CRM record.
is this possible?
regards,
S.Sivakumar
Re: Dynamic implementa tion
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-29-2013 01:20 AM - edited 01-29-2013 01:21 AM
only as Vinit already said in the other thread by using the Fiddler tool, which I can't help with
and not everything that can be counted counts.
@Albert Einstein

