Update Sharepoint.yaml

This commit is contained in:
2025-08-14 07:09:57 +00:00
parent 071c243f73
commit 1a02fbe6ca

View File

@@ -78,7 +78,7 @@
delegate_to: localhost delegate_to: localhost
run_once: true run_once: true
uri: 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 method: GET
headers: headers:
Authorization: "Bearer {{ graph_token.json.access_token }}" Authorization: "Bearer {{ graph_token.json.access_token }}"
@@ -92,6 +92,11 @@
debug: debug:
var: cols_probe.json.value | map(attribute='name') | list 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) - name: Create SharePoint list item (Graph)
delegate_to: localhost delegate_to: localhost
run_once: true run_once: true