public async void CreateObjectAndField() { var customObject = "MyCustomObject"; var standardObject = "Account"; var customField = "MyCustomField__c"; var salesforceClient = new SalesforceClient(); var loginResult = await salesforceClient.Login(_username, _password, _organizationId); var createObjectResult = await salesforceClient.CreateCustomObject(customObject, loginResult.SessionId, loginResult.MetadataServerUrl); Assert.IsNotNull(createObjectResult); var createFieldResult = await salesforceClient.CreateCustomField(customObject + "__c", customField, loginResult.SessionId, loginResult.MetadataServerUrl); Assert.IsNotNull(createFieldResult); var createFieldResult2 = await salesforceClient.CreateCustomField(standardObject, customField, loginResult.SessionId, loginResult.MetadataServerUrl); Assert.IsNotNull(createFieldResult2); }