Create a method for inserting accounts.
生活随笔
收集整理的這篇文章主要介紹了
Create a method for inserting accounts.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
public class AccountHandler { public static Account insertNewAccount(String an){Account acc=new Account(name=an);try{insert acc;return acc;}catch(DMLException e){return null;}}
}
總結
以上是生活随笔為你收集整理的Create a method for inserting accounts.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Get Started with Ape
- 下一篇: Create an Apex class