Update Sharepoint.yaml
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
uri:
|
||||
url: "https://graph.microsoft.com/v1.0/sites/{{ site_id }}/lists/{{ list_id }}/columns?$select=name,displayName,columnType"
|
||||
url: "https://graph.microsoft.com/v1.0/sites/{{ site_id }}/lists/{{ list_id }}/columns?$select=name,displayName"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ graph_token.json.access_token }}"
|
||||
@@ -92,6 +92,11 @@
|
||||
debug:
|
||||
var: cols_probe.json.value | map(attribute='name') | list
|
||||
|
||||
- name: Show internal column names (safe)
|
||||
debug:
|
||||
msg:
|
||||
names: "{{ (cols_probe.json.value | default([])) | map(attribute='name') | list }}"
|
||||
|
||||
- name: Create SharePoint list item (Graph)
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
|
||||
Reference in New Issue
Block a user