Building a Kotlin Mobile App With the Salesforce SDK: Editing and Creating Data | by Michael Bogan | Mar, 2022

So you can connect your app and org

Michael Bogan
Photo by Ali on Unsplash
class MainActivity : SalesforceActivity() {   private var client: RestClient? = null
private var listAdapter: ArrayAdapter<String>? = null
private lateinit var listAdapter: BrokerListAdapter
...
for (i in 0..records.length() - 1) {
listAdapter.add(records.getJSONObject(i).getString("Name"))
listAdapter.map(records.getJSONObject(i).getString("Name"), records.getJSONObject(i).getString("Id"))
}

Leave a Comment