Closed mcl12345 closed 6 years ago
Creating entities
To create an entity, you must first create the object, and then submit it to be processed. Note that many entities have required fields.:
ticket = at.new('Ticket') ticket.Title = 'test ticket' ticket.AccountID = 0 ticket.DueDateTime = datetime.now() ticket.Priority = at.picklist['Ticket']['Priority']['Standard'] ticket.Status = at.picklist['Ticket']['Status']['New'] ticket.QueueID = at.picklist['Ticket']['QueueID']['Your Queue Name Here']
ticket.create() # updates the ticket object inline using CRUD patch
new_ticket = at.create(ticket).fetch_one()
tickets = at.create(new_tickets)
tickets = at.create(new_tickets).fetch_all()
tickets = at.create(new_tickets).execute()
Hi,
I have a SysCallError :
And the source code :
I can't reproduce this error, fortunately