veeva-hello-world

Featured

Veeva Vault hello world with REST API and VQL. Use when integrating with Veeva Vault for life sciences document management. Trigger: "veeva hello world".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Veeva Vault Hello World ## Overview Create, retrieve, and query documents in Veeva Vault -- the fundamental CRUD operations. Uses the Vault REST API with VQL (Vault Query Language) for data retrieval. ## Instructions ### Step 1: Query Documents with VQL ```python import requests, os vault_url = "https://myvault.veevavault.com/api/v24.1" headers = {"Authorization": session_id} # VQL is SQL-like but Vault-specific query = "SELECT id, name__v, type__v, status__v, created_date__v FROM documents LIMIT 10" response = requests.post(f"{vault_url}/query", headers=headers, data={"q": query}) result = response.json() for doc in result.get("data", []): print(f"{doc['name__v']} | Type: {doc['type__v']} | Status: {doc['status__v']}") ``` ### Step 2: Retrieve a Document ```python doc_id = 123 response = requests.get(f"{vault_url}/objects/documents/{doc_id}", headers=headers) doc = response.json() print(f"Document: {doc['document']['name__v']}") print(f"Version: {doc['document']['major_version_number__v']}.{doc['document']['minor_version_number__v']}") ``` ### Step 3: Create a Document ```python # Create document metadata doc_data = { "name__v": "Protocol Amendment 001", "type__v": "Trial Document", "subtype__v": "Protocol", "lifecycle__v": "General Lifecycle", } response = requests.post(f"{vault_url}/objects/documents", headers=headers, data=doc_data) new_id = response.json()["id"] print(f"Created document: {new_id}") ``` ### Step 4: Upload Document File ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category