ExecuteMultipleRequest req = new ExecuteMultipleRequest(); RetrieveAttributeRequest retrieveAttributeRequest = new RetrieveAttributeRequest { EntityLogicalName = "account", LogicalName = "name", RetrieveAsIfPublished = true }; req.Requests.Add(retrieveAttributeRequest); //Error
Error:
An unhandled exception of type 'System.NullReferenceException' occurred in
Additional information: Object reference not set to an instance of an object.