Description
Creates a record within the system. You enter the name of the entity and values for all the properties you want to set.
The function will return the guid of the created record.
Signature
CreateRecord('entityname', SetAttribute('attributename', 'attributevalue' ))
Example
CreateRecord('contact', SetAttribute('firstname', 'Bill'), SetAttribute('lastname', 'gates'), SetAttribute('creditlimit', '5000'), SetAttribute('description', '?'), SetAttributeCustomer('parentcustomerid', 'account', '450dd379c-ee2f-11db-8314-0800200c777', 'Microsoft'), SetAttributeLookup('perferredsystemuserid', 'systemuser', '670dd379c-ee2f-11db-8314-0800200c888'))
Note 1: Fields of type lookup need SetAttributeLookup('fieldname', 'entityname', 'recordguid')
Note 2: Fields of type PartyList need SetAttributePartyList('fieldname', 'entityname', 'partyguid' , 'partyguid')
Parameters
Name | Type | Description | Required |
---|---|---|---|
entityname | xxxx | xxxx | xxxx |
SetAttribute | xxxx | xxxx | xxxx |