String str =
'Account'
;
sObject objct = Schema.getGlobalDescribe().get(str).newSObject();
objct.put(
'Name'
,
'My Account'
);
'Description'
'Description of My Account'
System.debug(
'sObject - '
+ objct);
Below is the output of this code.
No comments:
Post a Comment