Description Usage Arguments Value
This function will send chained POST requests to target entity in order to create new records with columns of a cds_df_like. For the moment this is a simple function, does not perform any data validation, putting all strain of validation checks on your CDS instance.
1 2 3 4 5 6 | create_cds_records(
cds_df_like,
cds_instance_name,
target_entity_set_name = NULL,
exclude_null_cols = FALSE
)
|
cds_df_like |
tiible or data,frame with columns named as fields in the target entity name and rows represeinting individula records to be created. |
cds_instance_name |
A character scalar used in
|
target_entity_set_name |
A plural name of the entity to which you want to post new records. |
exclude_null_cols |
A logical scalar indicating whether columns with nulls should be included in a single record PATCH request. Especially useful if you have null lookup field in your data for certain records and you want to exclude just the to prevent the whole request from failing. |
List of httr requests objects for each record created. Useful to investigate whether all requests went through and repeat for those who did not.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.