I'm trying to create some fake events using python in Event Log File:
from simple_salesforce import Salesforce, SalesforceLogin, SFType
session_id, instance = SalesforceLogin(username=username, password=password, security_token=security_token, domain=domain, client_id=client_id, consumer_key=consumer_key)
sf = Salesforce(session_id=session_id, instance=instance)
qa = SFType('EventLogFile', session_id, instance)
data = {
"EventType": "Login"
}
qa.create(date)
But I'm getting an error saying:
Response content: [{'message': 'entity type cannot be inserted: Event Log File', 'errorCode': 'CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY', 'fields': []}]
Is there a way to do this? If not like this directly to Event Log File, is there a way that I can do with python, then logs will appear in Events Log File?