-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdata_record.md.tmpl
55 lines (31 loc) · 1.91 KB
/
data_record.md.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
description: |-
{{ .Description }}
---
# {{.Name}} ({{.Type}})
{{ .Description | trimspace }}
Data Record is a special type of a resources, that allows creation of any type Dataverese table record. The syntax for working with `data_record` resource is simmilar to raw WebAPI HTTP requests that this record uses:
- [WebAPI overview - Power Platform | Microsoft Learn](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/overview)
## Example Usage
The following examples show how to use the `data_record` resource to configure some of the most common Dataverse settings. These are minimal examples just to show the syntax, and do not include all possible configuration options. Use these as a starting point if you need to set additional fields.
### Business Units
Example of how to create a [Business Unit](https://learn.microsoft.com/power-platform/admin/create-edit-business-units)
{{tffile "examples/resources/powerplatform_data_record/res_business_unit/main.tf" }}
### Application User
Example of how to create an [Application User](https://learn.microsoft.com/power-platform/admin/manage-application-users)
{{tffile "examples/resources/powerplatform_data_record/res_application_user/main.tf" }}
### Role
Example of how to create a [Role](https://learn.microsoft.com/power-platform/admin/create-edit-security-role#create-a-security-role)
{{tffile "examples/resources/powerplatform_data_record/res_role/main.tf" }}
### Team
Example of how to create a [Team](https://learn.microsoft.com/power-platform/admin/manage-teams)
{{tffile "examples/resources/powerplatform_data_record/res_team/main.tf" }}
## End to End Example
{{tffile "examples/resources/powerplatform_data_record/resource.tf" }}
{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}
## Import
Import is supported using the following syntax:
{{codefile "shell" .ImportFile }}
{{- end }}