-
Notifications
You must be signed in to change notification settings - Fork 1
Tips and tricks for JSON import preparation
MichaelJWhitney edited this page Aug 11, 2022
·
7 revisions
If you need to quickly prepare a JSON from a CSV or XLS file, the following instructions may help you.
eventCode
tenantId
eventDetails/businessObject/type
eventDetails/businessObject/globalIdentifiers/0/name
eventDetails/businessObject/globalIdentifiers/0/value
eventDetails/businessObject/<attribute1>
eventDetails/businessObject/<attribute2>
...
eventDetails/businessObject/<attributeN>
eventCode = "objectUpsertEvent"
tenantId = <<YOUR_TENANT_ID>>
eventDetails/businessObject/type = <<YOUR_OBJECT_TYPE>>
eventDetails/businessObject/globalIdentifiers/0/name = "sterlingSupplyChain.globalId"
eventDetails/businessObject/globalIdentifiers/0/value = <<an appropriate `globalIdentifier` for the data type>>
Using the pattern eventDetails/businessObject/<attribute1>
Resulting file will look something like this:
Select these options under Step 3: Choose output options (optional)
You probably also want to check this to suppress any empty values