Topic:   How to convert sObject to account in Salesforce?
Feb 04, 2021 11:27 1 Replies 44 Views JOSHUA

How to convert sObject to account in Salesforce?

Prev Next
Topic Replies (1)
  1. 1
    idnkx user

    DILEEP

    You can assign particular type object to generic for e.g
    sObject s = new Account();
    But You can't assign Generic type Object to Particular(Account) Object For e.g
    Account a =s; This will give error so you need to type Cast this to
    Account a=(Account)s;

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect