insertmicroapprow

description

Add a new row to a Microapp

parameters

ignoreActionRules - this tells the insert code not to fire any of the rules set up in the microapp for when the row is inserted

The X-Auth-Token and X-User-Id are derived from the values authToken and userId returned from the login endpoint and are used in the HTTP header.

rowData - name value pairs for fields.

userID - optional - if not provided, this defaults ot the user making the API call. Optionally, you can set the creator of a row by using the userID (string). eg "userID": "<some user's id>"

resource

{
	"microAppID":<insert microapp id here>",
	"rowData":{
		"ExampleFieldName":"ExampleValue"
	},
	"ignoreActionRules":true
}

response

Returns the status of the request

example

You should get back:

Linked Table Field Example

When inserting a row with a linked table (cross app) field, you need to provide both the crossAppRowID (the ID of the row you're linking to) and a value object containing the display information.

Key Points:

  • crossAppRowID: The _id of the row in the linked table

  • value.label: The field name from the linked table to display

  • value.value: The actual display value from that field

You should get back:

See Also


Last updated